string.char()

string.char (···) Numeric codes are not necessarily portable across platforms.

string.byte()

string.byte (s [, i [, j]])s[i]s[i+1]s[j]ijistring.sub Numeric codes are not necessarily portable across platforms.

setmetatable()

setmetatable (table, metatable) Sets the metatable for the given table. (To change the metatable of other types from Lua code, you must use the debug library (§6.10).) If metatable is nil, removes the metatable of the given table. If the original metatable has a __metatable field, raises an error. This function returns table.

select()

select (index, ···) If index is a number, returns all arguments after argument number index; a negative number indexes from the end (-1 is the last argument). Otherwise, index must be the string "#", and select returns the total number of extra arguments it received.

require()

require (modname) Loads the given module. The function starts by looking into the package.loaded table to determine whether modname is already loaded. If it is, then require returns the value stored at package.loaded[modname]. Otherwise, it tries to find a loader for the module. To find a loader, require is guided by the package.searchers sequence. By changing this sequence, we can change how require looks for a module. The following explanation is based on the default configuration for pac

Relational Operators

3.4.4 – Relational Operators Lua supports the following relational operators: ==: equality ~=: inequality <: less than >: greater than <=: less or equal >=: greater or equal These operators always result in false or true. Equality (==) first compares the type of its operands. If the types are different, then the result is false. Otherwise, the values of the operands are compared. Strings are compared in the obvious way. Numbers are equal if they denote the same mathemat

rawset()

rawset (table, index, value)table[index]value__newindextableindexnilvalue This function returns table.

rawlen()

rawlen (v)v__len

rawget()

rawget (table, index)table[index]__indextableindex

rawequal()

rawequal (v1, v2)v1v2__eq