If it’s comfortable to you, and consistent across your code. Stick with it. All my if statements are written like i was using other languages. if (Variable1 == (Variable2 + Variable3)) then
Operator precedence is a thing. The and operator has higher precedence over or. So a and b or c is the same as (a and b) or c. There is no ambiguity without parentheses. It works the same way like in English.
“You can get a slice of pizza or a hamburger and fries.”
Yes, a and (b or c) accomplishes that. Also another thing, just in case, binary logical operators are left associative, so if you have several ands chained, they will be evaluated from left to right, so a and b and c is the same as (a and b) and c, this is true for any operators with the same precedence that are left associative. There are also right associative operators, namely concatenation and exponentiation. a^b^c is the same as a^(b^c), for example.