Logical operators
The logical operators and, or, xor and not perform Boolean arithmetic on their operands.
LogicalExp
Rule components
The logical operators’ left and right operands are expressions whose result type must be boolean. The result type of all four operators is boolean.