General question relating to all pertinent videos.
I have yet to pick up the subtleties of when to test for true and when to test for false in the if statements. It seems like every time I implement some code, I have done it the wrong way. So the question is, what is best practice?
What I mean is, if I code “if (statement is true) return” then I can almost guarantee the videos will say “if (statement not true) { CODE }” and vice versa (I exaggerate for effect, of course).
Is this simply style, or is there a more subtle reason for the choice?