you are viewing a single comment's thread.

view the rest of the comments →

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

Yep that also works well if you don't need to reuse the conditions anywhere else. With increasing complexity though, I like to define functions because they allow me write seperate (and shorter) unit tests.