About 338,000 results
Open links in new tab
  1. What does operator ~= mean in Lua? - Stack Overflow

    Nov 18, 2020 · What does the ~= operator mean in Lua? For example, in the following code: if x ~= params then

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

  3. installation - How to install Lua on windows - Stack Overflow

    Installing lua system wide. Add lua in the environment variables by adding the path from where it's installed. After doing this you can open PowerShell and enter lua53.exe to open lua. Additional …

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

    In Lua, what is the difference between functions that use ":" and functions that do not? 1.

  5. What does # mean in Lua? - Stack Overflow

    Nov 2, 2017 · 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 …

  6. Split string in Lua - Stack Overflow

    May 20, 2024 · 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 …

  7. For Loop on Lua - Stack Overflow

    Jan 2, 2016 · ipairs is a Lua standard function that iterates over a list. This style of for loop, the iterator for loop, uses this kind of iterator function. The i value is the index of the entry in the …

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

    Aug 22, 2012 · Use io.read() Beware that the function can be customised with different parameters. Here are some examples. s = io.read("*n") -- read a number s = io.read("*l") -- …

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

    May 12, 2011 · Since you're referencing the floor function 3 times, using an excessive number of loops for most operations (numbers less than 2^31 don't need all 31 loops), are using the ^ …

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

    I don't know Lua so there might be syntax errors, but the overall idea is that you use string.sub method to divide your message into 2 parts: the command part and the info part. If the …

Refresh