title: Performing multiple comparisons efficiently
body: <p>I have a problem with my Objective-C code. I would like to have an <code>if</code> statement in a formula saying that the condition is checked just as if a <code>float</code> is equal to one of the other 5 I have defined. But shorter and simpler than:</p>
  
  <pre><code> if (float1 == float5 || float1 == float2 || float1 == float3 || float1 == float11)
   {
          //something to do
   }
  </code></pre>
  
  <p>Thank you very much for your answers.</p>