Game Development Reference
In-Depth Information
pairs ( t )
This function is used to iterate through the keys and values in a table.
t = {one="Eins",two="Zwei", three="Drei"}
for k,v in pairs(t) do
-- body
print(k,v)
end
pcall ( f, arg1, … )
f with the arguments in protected mode. This means that any errors
f are not propagated outside of the function.
stdout . It uses tostring and tonumber for conversion,
This function is used to check if the value v1 is equal to v2 . It returns a Boolean indicating the outcome
of the comparison.
rawget ( table, index )
This function returns the value of table[index] without invoking any metamethod. The table must be
a valid table and the index a non- nil value. This is equivalent to
table[index]
rawest ( table, index, value )
This function sets the value of table[index] without invoking any metamethods. The table must be a
valid table and the index a non- nil value. This is equivalent to
table[index] = value
select ( index, … )
This function returns all of the arguments passed to the function starting with the argument after the index
specified.
 
Search WWH ::




Custom Search