Logical operators of reference tables
Logical operators join two sub-expressions together. These sub-expressions can consist of keywords, wildcards, phrases, or other expressions, possibly parenthetically nested to change the order of evaluation.
and operator | This is the default logical conjunctive operator. |
or operator | This is the logical or operator. |
xor operator | This is the logical exclusive or operator that matches the message if either the left or right operands appear in the message, but not both operands. |
not operator | This is the logical negation operator that indicates that the keyword or phrase following the operator must not match. |
The and, or, and xor operators each require left and right arguments. The not operator requires only a right argument. The associative, distributive, and redundancy laws of Boolean logic are strictly followed, as expected. For instance, (NOT AA) AND (NOT BB) is the same as NOT (AA OR BB).
Related topic