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.
Unary expressions
Last modified: June 29, 2022
A unary minus operator is used to convert a number from negative to positive or vice versa. Note: there is no unary plus.
|
|
represents the negative value of ‘8’. When used with a variable that already has a negative value (let’s assume $myVariable has the integer value “-7”) the result is positive:
|
|
returns:
|
|