Skip to content

#when

Executes one or more statements when a boolean expression is true.

#when(condition, statement, ...statements)
Category StatementsValid in Statement
Name Type Description
condition boolean The condition to test.
statements statement One or more statements to run.
#when(#exists(@x.integerArray), #removeAt(@x.integerArray))

#setAt · #removeAt · #using