If Expressions

Last update: Edit

If expressions can be used to define conditional actions in expressions. The correct syntax is as follows:

if <condition> then <a value> else <other value>

Using the following statement as the expression of a Change variable action for a string value:

if 7 > 6 then "correct" else "incorrect"

will set the value of the variable to “correct”.