IF TRUE Expression
- Last UpdatedOct 24, 2022
- 1 minute read
For two variables of type REAL, IFTRUE ( x GT y, x, y) returns the largest number out of x and y.
If the initial BOOLEAN expression is true, the result of the first expression is returned. If false, the result of the second expression is returned.
Both the second and third arguments are fully evaluated regardless of the value of the BOOLEAN. This is because the function is evaluated using reverse polish procedure (as is the case of the expression design). This allows the IF statement to be nestable with any of the arguments to IF capable of including other IF functions.
-
If logical1 expression is set to true, then value of typeX1 expression is returned.
-
If logical1 expression is set to false, then value of typeX1 expression is returned.
TypeX1 and typeX2 are two arguments of the same type which may be:
-
Logical
-
Logical Array
-
Real
-
Real Array
-
ID
-
ID Array
-
Text
-
Position
-
Direction