About 425,000 results
Open links in new tab
  1. What does # mean in Lua? - Stack Overflow

    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...

  2. Lua - if statement with two conditions on the same variable?

    Jan 24, 2012 · 20 How can I set a lower and upper bound value for a variable in a if-statement in lua programming language? I need something like the pseudocode below.

  3. resources - Lua, what is Lua? - Stack Overflow

    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.

  4. arrays - How to iterate through table in Lua? - Stack Overflow

    Jul 3, 2013 · Edit: Note that Lua doesn't guarantee any iteration order for the associative part of the table. If you want to access the items in a specific order, retrieve the keys from arr and sort it.

  5. sorting - Sort a Table [] in Lua - Stack Overflow

    Apr 1, 2013 · A table in Lua is a set of key-value mappings with unique keys. The pairs are stored in arbitrary order and therefore the table is not sorted in any way. What you can do is iterate over the …

  6. Why does Lua have no "continue" statement? - Stack Overflow

    The Lua authors felt that continue was only one of a number of possible new control flow mechanisms (the fact that it cannot work with the scope rules of repeat/until was a secondary factor.)

  7. Lua - Current time in milliseconds - Stack Overflow

    Apr 15, 2017 · Is there a common way to get the current time in or with milliseconds? There is os.time(), but it only provides full seconds.

  8. How do I use the bitwise operator XOR in Lua? - Stack Overflow

    May 12, 2011 · How can I implement bitwise operators in Lua language? Specifically, I need a XOR operator/method.

  9. How can I make an GUI Application in Lua - Stack Overflow

    I've been studying Lua for around a week now, and I'm really curious of how I would do this. Basically (for now, and learning purposes), I just want to make a GUI with 2 buttons, 1 to start the specified …

  10. lua - Undefined global `vim` - Stack Overflow

    Jun 1, 2025 · 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 …