Parentheses in logical expressions

IDSTAT-8
TitleUse parentheses to clarify precedence in logical expressions.
PriorityStrongly recommended
DescriptionUse parentheses to clarify the precedence of operands in expressions with multiple logical operators. No parentheses are required when only one type of logical operator is used. For example: d = a && b && c;
RationaleReadability

Avoid:

d = a && b || c;

Instead use:

d = (a && b) || c;