if Statement Comparators - UDM
The following table lists all of the comparators that can be used in an if statement to determine the type of comparison to be made between the left-hand and right-hand values.
Comparator |
Description |
---|---|
EQ (Equal) |
Evaluates to true if the left-hand and right-hand values are equal. |
NE (Not Equal) |
Evaluates to true if the left-hand value is not equal to the right-hand value. |
LT (Less Than) |
Evaluates to true if the left-hand value is less than the right-hand value. |
GT (Greater Than) |
Evaluates to true if the left-hand value is greater than the right-hand value. |
LE (Less Than or Equal) |
Evaluates to true if the left-hand value is less than or equal to the right-hand value. |
GE (Greater Than or Equal) |
Evaluates to true if the left-hand value is greater than or equal to the right-hand value. |
For an explanation of how these comparators are used, see Comparison Operations.