Operators
The table below lists Lua operators.
Type | List |
---|---|
Relational operators |
<> <= >= == ~= |
Logic operators |
not, and, or |
test=str:sub(2,5)
debug("return: %s \n", test)
log("record a log")
result: “bcde”
For a tutorial on scripting with the Lua string library, see http://lua-users.org/wiki/StringLibraryTutorial.