About 377,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. 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 …

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

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

  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 …

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

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

  8. Lua - Current time in milliseconds - Stack Overflow

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

  9. lua - How to merge two tables overwriting the elements which are …

    Aug 18, 2021 · I need to merge two tables, with the contents of the second overwriting contents in the first if a given item is in both. I looked but the standard libraries don't seem to offer this. …

  10. Boolean "not equal to" in Lua (negation of a Boolean conditional)

    Jul 7, 2023 · 15 How do I write an if statement in Lua that negates (inverts/flips) a Boolean variable used as the condition? For example, in Java, one can write: