Mendix 7 is no longer supported unless you have Extended Support. Mendix 7 documentation will remain available until July 2024.
To upgrade to a supported version, see Moving from Desktop Modeler Version 7 to Studio Pro 8.
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”.