| 4D v13.4Logical Operators | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v13.4
 Logical Operators 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Operation | Syntax | Returns | Expression | Value | 
| AND | Boolean & Boolean | Boolean | ("A" = "A") & (15 # 3) | True | 
| ("A" = "B") & (15 # 3) | False | |||
| ("A" = "B") & (15 = 3) | False | |||
| OR | Boolean | Boolean | Boolean | ("A" = "A") | (15 # 3) | True | 
| ("A" = "B") | (15 # 3) | True | |||
| ("A" = "B") | (15 = 3) | False | 
The following is the truth table for the AND logical operator:
| Expr1 | Expr2 | Expr1 & Expr2 | 
| True | True | True | 
| True | False | False | 
| False | True | False | 
| False | False | False | 
The following is the truth table for the OR logical operator:
| Expr1 | Expr2 | Expr1 | Expr2 | 
| True | True | True | 
| True | False | True | 
| False | True | True | 
| False | False | False | 
Tip: If you need to calculate the exclusive disjunction between Expr1 and Expr2, evaluate:
 (Expr1|Expr2) & Not(Expr1 & Expr2)
	Product:  4D
	Theme:  Operators
	
        
        
	
Bitwise Operators
Comparison Operators
Date Operators
Numeric Operators
Operators
Picture Operators
String Operators
Time Operators