title: Switch statement for greater-than/less-than
body: <p>so I want to use a switch statement like this:</p>
  
  <pre><code>switch (scrollLeft) {
    case (&lt;1000):
     //do stuff
     break;
    case (&gt;1000 &amp;&amp; &lt;2000):
     //do stuff
     break;
  }
  </code></pre>
  
  <p>Now I know that either of those statements (<code>&lt;1000</code>) or (<code>&gt;1000 &amp;&amp; &lt;2000</code>) won't work (for different reasons, obviously).  What I'm asking is the most efficient way to do just that.  I hate using 30 <code>if</code> statements, so I'd rather use the switch syntax.  Is there anything that I can do?</p>