title: Condition evaluating incorrectly (Lua 4)
body: <p>I am trying to use this function in Lua 4:</p>
  <pre><code>function ternary(cond, T, F)
      if cond then return T else return F end
  end
  </code></pre>
  <p>In this context:</p>
  <pre><code>loadHW1 = false
  print(ternary(loadHW1 == true, &quot;this should not appear&quot;, nil))
  </code></pre>
  <p>However, the text always gets printed when instead I expect the result to be <code>nil</code>. What am I doing wrong? Thanks.</p>
  <p>[ed]</p>
  <p>I switched to this but still get a &quot;this is true&quot; result:</p>
  <pre><code>loadHW1 = 0
  print(ternary(loadHW1, &quot;this is true&quot;, &quot;this is false&quot;))
  </code></pre>