About 1,140,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. Inline conditions in Lua (a == b ? "yes" : "no")? - Stack Overflow

    May 3, 2013 · There is a nice article on lua-users wiki about ternary operator, together with problem explanation and several solutions.

  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. 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 "kill/Paul". Now I want to kill the player with the name Paul. This is my command …

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

  6. function - Difference between . and : in Lua - Stack Overflow

    Difference between . and : in Lua Asked 14 years, 9 months ago Modified 1 year, 2 months ago Viewed 80k times

  7. lua - print () command and multiple items - Stack Overflow

    Jun 8, 2020 · Some context, This is some of my first programming in Lua and I am doing it with QSC software. local a = Controls.Flippy.String local b = Controls.Flippy.Value local c = …

  8. Split string in Lua - Stack Overflow

    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 …

  9. Getting input from the user in Lua - Stack Overflow

    Aug 22, 2012 · How can I get an input from user in Lua (like scanf in C)? For example, the program ask user his name, then he writes his name, then the program will output his name.

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