title: Lua - if statement with two conditions on the same variable?
body: <p>How can I set a lower and upper bound value for a variable in a if-statement in lua programming language? I need something like the pseudocode below.</p>
  
  <pre><code>if ("100000" &gt;= my_variable &lt;= "80000") then
       do stuff...
  end
  </code></pre>
  
  <p>I've tried different formats but my application keeps crashing.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>To anyone with the same sort of doubts about lua's syntax, i'd recommend checking the documentation <a href="https://www.lua.org/manual/5.3/" rel="noreferrer">here</a> and keeping it handy. It'll be useful while learning.</p>