There is no way that you can use binary operators like those provided in programming languages to compare a single variable to a list of values. Even though lua does not differentiate between floating point numbers and integers, there are some cases when you want to use integers 45 if you are splitting a string in lua, you should try the string.gmatch () or string.sub () methods
Tudo o que me vai na alma: Abraço a lua
Use the string.sub () method if you know the index you wish to split the string at, or use the string.gmatch () if you will parse the string to find the location to split the string at
Example using string.gmatch () from lua 5.1 reference manual:
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.) Why are you finishing each lua script with additional end Just remove these end s. I have seen the hash character '#' being added to the front of variables a lot in lua
Programming lua has the following example where you want to calculate the solutions of a quadratic equation and the computation has some temporaries: 12 i have both the 5.1 reference manual and the programming in lua 3rd ed. in front of me Reading these, as well as numerous searches on the web, still leave me a bit confused when it comes to using string.match and string.gmatch
I understand that they both are used to locate patterns.