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 =
In lua asked 14 years, 9 months ago modified 1 year, 3 months ago viewed 80k times I need something like the pseudocode below. 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 29 i need to convert a json string to a table data structure in lua I am using the following code. Boolean not equal to in lua (negation of a boolean conditional) asked 11 years, 8 months ago modified 2 years, 4 months ago viewed 30k times
WATCH