Parenthetical nesting
You can change the order of precedence when evaluating expressions using balanced parentheses. You can also use this to leverage the associative and distributive properties of Boolean logic. If you do not use parentheses, then the expression is evaluated from left to right, by default.
Parentheses are often important and required when using the logical operators described in the Logical-operators.
This is different from (AA AND BB) OR CC that matches any message that contains both AA and BB in any order, or the keyword CC.
Parenthesis can be nested to any level. When nesting parentheses, the parenthesis must be balanced.
BMC Defender Server follows the special rules of the Boolean commutative, distributive and associative laws, as one would expect. The expression NOT (AA AND BB) is identical to (NOT AA) AND (NOT BB). Likewise, the expression (A AND B) OR (A AND C) is identical to the expression A AND (B OR C). Other Boolean laws, such as the Identity and Redundancy laws are also obeyed as one would expect. A good understanding of these laws is not absolutely necessary for creating logical expressions, but is helpful.
Related topic