If you implement each and every tiny feature, you can end up with a 'kitchen sink' language Is there a common way to get the current time in or with milliseconds I have seen the hash character '#' being added to the front of variables a lot in lua
6 Hot Sexy Lua Stardust Bikini Pics
Any idea why this is wrong in lua
If pieza == 1 then if rotacion == 1 then piezas = cuadrado1 else if rotacion == 2 then piezas =
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 use binary operators like those provided in programming languages to compare a single variable to a list of values. In lua asked 14 years, 9 months ago modified 1 year, 2 months ago viewed 80k times I'm new to lua, and need to know how to install it on windows
I've tried and am unable to run the sample When i try to compile it 100% success is shown, but when i click the run button it shows t. 45 if you are splitting a string in lua, you should try the string.gmatch () or string.sub () methods Use the string.sub () method if you know the index you wish to split the string at, or use the string.gmatch () if you will parse the string to find the location to split the string at
Example using string.gmatch () from lua 5.1 reference manual:
Edit for those who come across this post in the future, please note what @gimf posted Since tables in lua are as much like arrays than anything else (even in a list context), there is no real correct way to append one table to another The closest concept is merging of tables