#when
Executes one or more statements when a boolean expression is true.
#when(condition, statement, ...statements)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
condition |
boolean |
The condition to test. |
statements |
statement |
One or more statements to run. |
Examples
Section titled “Examples”Conditional removal
Section titled “Conditional removal”#when(#exists(@x.integerArray), #removeAt(@x.integerArray))