4D v14.3Logical Operators |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Logical Operators
Logical Operators
4D supports two logical operators that work on Boolean expressions: conjunction (AND) and inclusive disjunction (OR). A logical AND returns TRUE if both expressions are TRUE. A logical OR returns TRUE if at least one of the expressions is TRUE. 4D also provides the Boolean functions True, False, and Not. For more information, see the descriptions of these commands. The following table shows the logical operators:
The following is the truth table for the AND logical operator:
The following is the truth table for the OR logical operator:
Tip: If you need to calculate the exclusive disjunction between Expr1 and Expr2, evaluate: (Expr1|Expr2) & Not(Expr1 & Expr2) |
PROPERTIES
Product: 4D SEE ALSO
Bitwise Operators ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||