title: Lua Recursion issue unexpected result
body: <p>I'm trying to figure out why this function is ignoring the middle most table? I'm overlooking something simple I assume.</p>
  <p>Here's the code</p>
  <pre><code>tbl = {
      name = &quot;first table&quot;;
      tbl = {
          name = &quot;middle table&quot;;
          tbl = {
              name = &quot;last table&quot;;
          };
      };
  }
  
  sayName = function(tbl)
      print(tbl.name)
      if tbl.tbl ~= nil then
          for _,v in pairs(tbl.tbl) do
              sayName(v)    
          end;
      end;
  end;
  
  sayName(tbl)
  </code></pre>
  <p>Output&gt;</p>
  <pre><code>first table
  last table
  nil
  </code></pre>