title: Short if statement
body: <p>I have found something weird...,
  I have this piece of code at the end of my function:</p>
  
  <pre><code>return $class == 3?"red":$class==2?"orange":$class==1?"yellow":"";
  </code></pre>
  
  <p>Now, when <code>$class == 2</code> this returns "yellow" and not "orange" like I expected.
  Can someone explain this to me?</p>