Skip to content

Add deprecation warning for when clause #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/basic_training/processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,10 @@ workflow {

The `when` declaration allows you to define a condition that must be verified in order to execute the process. This can be any expression that evaluates a boolean value.

!!! warning

Deprecated since version 24.10.0: Use conditional logic (e.g. `if` statement, [filter](https://www.nextflow.io/docs/latest/reference/operator.html#operator-filter) operator) in the calling workflow instead.

It is useful to enable/disable the process execution depending on the state of various inputs and parameters. For example:

```groovy linenums="1" title="snippet.nf"
Expand Down