If you implement each and every tiny feature, you can end up with a 'kitchen sink' language I have seen the hash character '#' being added to the front of variables a lot in lua 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. Any idea why this is wrong in lua If pieza == 1 then if rotacion == 1 then piezas = cuadrado1 else if rotacion == 2 then piezas =
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. In lua asked 14 years, 9 months ago modified 1 year, 3 months ago viewed 80k times 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
Is there a common way to get the current time in or with milliseconds There is os.time(), but it only provides full seconds. Vim.lsp.config(lua_ls, { settings = { lua = { diagnostics = { globals = { vim }}}}}) i believe you have tried to do something similar in your code, and you can probably reuse everything you have in your lua table as well
OPEN