title: Lua: If a number is between 1 and 20
body: <p>I wanted to <em>check</em> if a number is between 1 and 20, this is what I am using:</p>
  
  <pre><code>for x=1,20 do
    if x == 10 then
      print(x)
    end
  end
  </code></pre>
  
  <p>The problem is that, it prints the number 10 instead of printing <code>true</code> or
  <code>
  1
  2
  3
  ..</code> am I doing something wrong here? If so, what’s it? Thanks.</p>