if playerLikesApples and playerLikesOranges or playerLikesCherries then
-- do something
end
Would it be treated like this:
if (playerLikesApples and playerLikesOranges) or (playerLikesCherries) then
-- The player must like apples and oranges for the statement to execute, or they can like cherries.
end
Or like this:
if (playerLikesApples) and (playerLikesOranges or playerLikesCherries) then
-- The player must like apples, and the player can like either oranges or cherries for the statement to execute.
end
They are encouraging you to actively use parentheses for logic operators. It will solve common errors as well as make your code more readable. Essentially treats it as a math equation with orders of operation; you always do the parentheses first.