Boolean Operators
- Last UpdatedOct 29, 2024
- 1 minute read
The BOOLEAN, sometimes called Logical, operators have the following meanings.
The logical operators available are:
|
Operator |
Comments |
|
EQ |
TRUE if two expressions have the same value. |
|
NE |
TRUE if two expressions have different values. |
|
LT |
TRUE if the first expression is less than the second. |
|
GT |
TRUE if the first expression is greater than the second. |
|
LE OR LEQ |
TRUE if the first expression is less than or equal to the second. |
|
GE OR GEQ |
TRUE if the first expression is greater then or equal to the second. |
|
NOT |
TRUE if the expression is FALSE. |
|
AND |
TRUE if both expressions are TRUE. |
|
OR |
TRUE if either or both expressions are TRUE. |
Note:
The operators EQ, NE, LT, GT, LE and GE are sometimes referred to as comparator or relational operators; NOT, AND, and OR are sometimes referred to as BOOLEAN operators. For tolerances in comparing numbers,
refer to Precision of Comparisons.