Logical Operators

You can find the list of logical operators below, according to the operators priority, starting from the operator with the highest priority:

These operators are applied to logical operands and return a logical result.

  A And B A Or B A Xor B
a = True
b = True
True True False
a = True
b = False
False True True
a = False
b = True
False True True
a = False
b = False
False False False

NOTE. The second operand is not calculated for the AND and OR logical operator if it does not affect the operation result.

See also:

Fore Language Guide | Unary Operators | Arithmetic Operators