title: Determining if a variable is within range?
body: <p>I need to write a loop that does something like:</p>
  
  <pre><code>if i (1..10)
    do thing 1
  elsif i (11..20)
    do thing 2
  elsif i (21..30)
    do thing 3
  etc...
  </code></pre>
  
  <p>But so far have gone down the wrong paths in terms of syntax.</p>