title: How do I combine and conditions?
body: <p>Hi I'm new to this site and programming so I'm sorry if this question is dumb.
  I'll get to the point.</p>
  
  <pre><code>If (a == 1 &amp;&amp; b == 2)
  {
      executeFunction
  }
  If (a == 2 &amp;&amp; b == 3)
  {
      executeSameFunctionAsAbove
  }
  </code></pre>
  
  <p>How would I combine the two if statements? Both will execute the same function.</p>