Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.

If expressions

Last modified: April 5, 2024

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

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

Using this 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”.