Chain of, or one big if sentence
Putting them all in a single condition like that is absolutely fine. C/C++ uses "short circuit evaluation" which means it will stop as soon as it's determined the outcome. If everything is combined using logical AND operators (&amp;&amp;) then that means it will stop as soon as one of them evaluates to false.

For example:

 if (blah() &amp;&amp; foo()) { ... }


If blah() returns false, it will never call foo() at all because it already knows the overall outcome is false.

The reverse happens with the logical OR operator (||):

 if (blah() || foo()) { ... }


If blah() returns true in this case, it won't call foo(). That's because it already knows the overall outcome is true.