This a printable view of this page. Click here to print.

Return to the regular view of this page.

If Expressions

Introduction

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

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

Example

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

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

will set the value of the variable to correct.