title: How to write "if x equals 5 or 4 or 78 or..." in C
body: <p>I have a quick question about using logical operators in an if statement.</p>
  
  <p>Currently I have an if statement that checks if x equals to 5 or 4 or 78:</p>
  
  <pre><code>if ((x == 5) || (x == 4) || (x == 78)) {
  blah
  }
  </code></pre>
  
  <p>And I was wondering if I could just condense all that to:</p>
  
  <pre><code>if (x == 5 || 4 || 78) {
  blah
  }
  </code></pre>
  
  <p>Sorry for such a basic question, I've just started learning C.</p>