If three or more comparison rows are combined with different logical operators (that is, both "AND" and "OR" are used), the meaning of the condition depends on the order in which the logical operations are performed. Thus in that case the property editor displays an extra section at the very bottom, allowing to select operator precedence:
OR then AND: the logical OR operations are performed first, then the logical AND operations.
AND then OR: the logical AND operations are performed first, then the logical OR operations.
The following table provides some examples of conditions with their meaning for each choice of operator precedence.
Condition |
OR then AND means |
AND then OR means |
---|---|---|
A OR B AND C |
(A OR B) AND C |
A OR (B AND C) |
A OR B AND C OR D |
(A OR B) AND (C OR D) |
A OR (B AND C) OR D |
A AND B OR C AND D |
A AND (B OR C) AND D |
(A AND B) OR (C AND D) |
A AND B OR C OR D |
A AND (B OR C OR D) |
(A AND B) OR C OR D |