assert(value, [message]) |
Checks if value is true, otherwise errors with message . |
collectgarbage(...) |
Interface to the garbage collector (options depend on Lua version). |
decompile(...) |
Attempts to decompile Lua bytecode. Availability/success may vary. |
error(message [, level]) |
Terminates the last protected function called, returning message . |
gcinfo() |
Deprecated. Returns memory usage. Often alias for collectgarbage('count') . |
ipairs(t) |
Returns an iterator for numerical indices (1 to n) in table t . |
module(name [, ยทยทยท]) |
Creates a module (older Lua style). |
newproxy([uservalue]) |
Creates a userdata object with settable metatable and optional value. |
next(table [, index]) |
Allows traversal of all key-value pairs in a table. |
pairs(t) |
Returns an iterator function to traverse all key-value pairs in table t . |
pcall(f, arg1, ...) |
Calls function f in protected mode, catching errors. |
print(...) |
Prints arguments to the standard output/console. |
printidentity() |
Prints the current security identity level. Environment Specific. |
printl(...) |
Similar to print , possibly with line/level info. Environment Specific. |
rawequal(v1, v2) |
Checks equality without invoking the __eq metamethod. |
rawget(table, index) |
Gets table[index] without invoking the __index metamethod. |
rawset(table, index, value) |
Sets table[index] without invoking the __newindex metamethod. |
require(modname) |
Loads the specified module. |
select(index, ...) |
Returns arguments after a given index from a variable argument list. |
setclipboard(text) |
Sets the system clipboard text. Environment Specific. |
setField(instance, prop, val) |
Sets a property on an instance. Environment Specific. |
spawn(f) |
Executes function f in a new coroutine/thread. Environment Specific. |
tonumber(e [, base]) |
Converts argument e to a number. |
tostring(e) |
Converts argument e to a string, using __tostring if available. |
type(v) |
Returns the type of v as a string (e.g., "string", "table"). |
unpack(list [, i [, j]]) |
Returns elements from the given table list . |
wait([seconds]) |
Pauses script execution. Environment Specific. |
xpcall(f, err) |
Calls function f in protected mode with a custom error handler err . |