Logical operators can only be used with arguments that can be evaluated to Boolean.
As the following table shows, the NOT operator is a unary prefix operator. This means that it takes only one argument and is placed in front of the argument. The AND, OR, and XOR operators are binary infix operators; they take two arguments and are placed between the corresponding arguments.
|Operator||Name||Expression||Resulting data type|
bool AND bool
bool OR bool
Exclusive logical or
bool XOR bool