About 1,180,000 results
Open links in new tab
  1. Lua operators, why isn't +=, -= and so on defined?

    Nov 20, 2013 · In Lua's case, the language is intended to be an embedded scripting language, so any changes that make the language more complex or potentially make the compiler/runtime …

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

  3. if statement - How to check if a value is equal or not equal to one …

    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 …

  4. How to check if a table contains an element in Lua?

    How to check if a table contains an element in Lua? Asked 15 years, 8 months ago Modified 4 years, 7 months ago Viewed 323k times

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

    Jul 7, 2023 · Boolean "not equal to" in Lua (negation of a Boolean conditional) Asked 11 years, 8 months ago Modified 2 years, 3 months ago Viewed 30k times

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

  7. lua - How to make a kill command to kill a specific player? - Stack ...

    I want to make a command that would kill a player you specify. Let's say I type &quot;kill/Paul&quot;. Now I want to kill the player with the name Paul. This is my command …

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

  9. How to get number of entries in a Lua table? - Stack Overflow

    @rboy true but the point is, in Lua assigning nil to a table key means deleting it. There's no way to distinguish between keys with nil values and keys with no value, regardless of method.

  10. Lua: Rounding numbers and then truncate - Stack Overflow

    Aug 19, 2013 · 15 If your Lua uses double precision IEC-559 (aka IEEE-754) floats, as most do, and your numbers are relatively small (the method is guaranteed to work for inputs between -2 …