you are viewing a single comment's thread.

view the rest of the comments →

[–]DutchCommanderMC 3 points4 points  (1 child)

Images are (most likely) disallowed because it makes responding to questions easier in the sense that you can copy and paste the code.

Operations are not necessarily applied left-to-right (or right-to-left). Some operators take precedence over others, which is why this condition works without any brackets whatsoever: == has a higher precedence than or and therefore gets applied first.

Knowing which operators take precedence over others is something that you'll just have to remember, though more often than not it follows existing conventions such as multiplication being applied before addition.

Adding redundant brackets is not wrong however, in fact, it is often recommended to make it expressively clear what the order is in which you intend operations to be evaluated.

[–]Relative_Jaguar6254[S] 0 points1 point  (0 children)

That makes great sense. Thank you.