title: Scalable if statements conditions
body: <p>I was wondering about the possibility of creating an if statement that is more scalable. In the case we have a condition that one variable can possibly be one of many different values for the if statement to be satisfied, I have tried these such formats:</p>
  
  <p>This is the default answer.</p>
  
  <pre><code>if (variable == 23
      || variable == 52 
      || variable == 58 
      || variable == 62 
      || variable == 93)
  { 
      some function
  } 
  </code></pre>
  
  <p>This is what I imagined would work as a newb to C.</p>
  
  <pre><code>if (variable == (23,52,58,62,93) 
  {
      some function
  }
  </code></pre>
  
  <p>However, using the comma method I get a warning such that </p>
  
  <pre><code>warning: expression result unused [-Wunused-value]
  </code></pre>
  
  <p>Does anyone have a possible way to make an if statement of one variable with multiple possible conditions to be written without copy and pasting the variable name each time?</p>