Because control structures in lua only consider nil and false to be false, and anything else to be true, this will always enter the if statement, which is not what you want either. There is no way that you can Ò€¦ Difference between.

I have seen the hash character '#' being added to the front of variables a lot in lua. What does it do? Example -- sort ais in currentlevel table. sort (level. ais, function (a,b) return a. y < b Lua is a powerful, fast, lightweight, embeddable scripting language. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics.