User:Notmyhandle/Lua notes

Notes pertaining to the use of LUA via Extension:Scribunto.

Examples

 * Sandbox


 * Explode

Testing alternate explode:

Testing string.find function:

Modules and their functions
"Modules" are not pre-set libraries. They are pages that we create here. E.g. Module:Explode is a page that I create.

LUA basics

 * -- comments a line.
 * -- Multi-line comment "tags" --
 * Data type of all number variables are 64-bit doubles that can auto-store int values.
 * Single or double quotes are used to define strings.
 * Double brackets used to define multi-line strings.
 * Variable = nil will undefine the variable and process it through garbage collection.