title: access to global variables in lua
body: <p>I have a Lua code below :</p>
  
  <pre><code>a, b = 1, 10
  if a&lt;b then
      print(a)
      local a
      print(a)
  end
  print(a, b)
  </code></pre>
  
  <p><br>
  Just a small question : <br><br>first of all, I created a global variable a = 1;
  <br><br> then in the <strong>then</strong> block I use the <strong>global variable a</strong> to print it;<br><br> and then I declared a <strong>local variable a</strong> that is not initialized (<strong>thus it gets the value nil</strong>)<br><br>
  Then my question comes : how could I get access to the <strong>global variable a</strong> after having created the <strong>local variable a</strong> in the <strong>then block</strong>, is that possible ? If so, please give me an answer :)</p>