log_exp - boolean operators and brackets

The boolean operators AND and OR link, in each case, multiple logical expression, while the operator NOT negates a logical expression. Logical expressions can be explicitly bracketed with ( ).

When combining multiple boolean operators, the system implicitly brackets all logical expressions that are not closed with explicit brackets according to the following hierarchy:

  1. All boolean operators NOT are combined with the adjacent logical expression to the right to a logical expression.

  2. All logical expression linked with AND, are combined to a logical expression.

  3. All logical expression linked with OR, are combined to a logical expression.

The logical expressions of a bracket level are processed from the left to the right. If the value of a logical expression determines the total value of the bracket level, then the remaining logical expressions are not evaluated.

Note

When you link multiple logical expressions, the explicit and implicit brackets always result in exactly one logical expression that is either true or false.