You're welcome. Lua is a fun language but it's syntactic flexibility (often several ways to write the same expressions) can take a bit of getting used to. I depended heavily on the Lua 5.1 Reference Manual from lua.org when learning and I still have to go back there sometimes when proper syntax eludes me:
http://www.lua.org/manual/5.1/