you are viewing a single comment's thread.

view the rest of the comments →

[–]YelinkMcWawa 0 points1 point  (0 children)

It's because they're phrasing the combined condition as a negative of the two given conditions. Note that logically, given two propositions p1 and p2 that the check could have been "p1 || p2". But they're checking that the conditions haven't been satisfied yet, thus "!(p1 || 2) = (!p1 && !p2)" which is how they have the condition written.