title: Check both conditions in an if statement even if the first one is false
body: <p>I have two statements in an if block that both link to a function that will return a bool. Both statements must be true for the code to run but I want them both to be checked even if the first one is false. The relevant code:</p>
  
  <pre><code>if (myFunc(one) &amp;&amp; myFunc(two)) {
      //execute
  }
  </code></pre>
  
  <p>myFunc will execute some code before returning false, but this code is not executed on two if one returns false.</p>
  
  <p>I got this to work, but it feels like a hack:</p>
  
  <pre><code>if ((myFunc(one) &amp;&amp; myFunc(two)) || (myFunc(two) &amp;&amp; myFunc(one))) {
      //execute
  }
  </code></pre>
  
  <p>Does anyone have a better solution? Thanks!</p>