1 Answers

0
votes

AND in logic has higher precedence than OR, the same way that multiplication has higher precedence in math than addition. Expressions aren't evaluated left-to-right, either in math or logic. They're evaluated according to specific precedence rules.

Most (if not all) programming languages follow the logical precedence rules.