title: JavaScript conditional switch statement
body: <p>Is there a way to write a conditional switch statement in JavaScript?</p>
  <p>I'm guessing not, since the following is always going to <code>default</code>:</p>
  <pre><code>var raw_value = 11.0;
  switch(raw_value)
  {
      case (raw_value &gt; 10.0):
        height = 48;
        width = 36;
        break;
      case (raw_value &gt; 5.0):
        height = 40;
        width = 30;
        break;
      default:
        height = 16;
        width = 12;
        break;
  }
  </code></pre>
  <p>If not, what should I use instead - a long if/else statement?</p>
  <p>thanks :)</p>