API:type

Returns the data type of its only argument as a string.

Arguments

 * v
 * any - The variable whose type is to be identified.

Returns

 * datatype
 * string - The possible string results of this function are "nil", "number", "string", "boolean", "table", "function", "thread", and "userdata".

Related Functions

 * getglobal