|
|
|
|
|
by andai
1350 days ago
|
|
Some additional context for us lua noobs: >Conditionals (such as the ones in control structures) consider false and nil as false and anything else as true. Beware that, unlike some other scripting languages, Lua considers both zero and the empty string as true in conditional tests. https://www.lua.org/pil/2.2.html >The basic use of string.find is to search for a pattern inside a given string, called the subject string. The function returns the position where it found the pattern or nil if it could not find it. https://www.lua.org/pil/20.1.html |
|