title: How to write an if statement with multiple || and && in C?
body: <p>What is a concise way to write an if statement with more than many || and &amp;&amp; in C?</p>
  
  <p>I want to only execute a printf statement if a either 1,2,4 or 6 AND b = 8 and c = 10, can I put all these conditions into the same if statement?</p>
  
  <p>eg. can I write something like:</p>
  
  <pre><code>if ((a = 1||2||4||6) &amp;&amp; b == 8 &amp;&amp; c == 10)
  
  //do something
  </code></pre>
  
  <p>This doesn't seem to work...</p>