Skip to content

Commit 98737ce

Browse files
authored
Merge pull request #503 from nextflow-io/add_deprec_when
Add deprecation warning for when clause
2 parents f47356b + 25ebf14 commit 98737ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/basic_training/processes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,10 @@ workflow {
10261026

10271027
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.
10281028

1029+
!!! warning
1030+
1031+
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.
1032+
10291033
It is useful to enable/disable the process execution depending on the state of various inputs and parameters. For example:
10301034

10311035
```groovy linenums="1" title="snippet.nf"

0 commit comments

Comments
 (0)