Returns a string describing the data type of a value


See also Lua library functions.

Signature:

typeString = type(v)

Arguments:

  • v - Any value (value)

Returns:

  • typeString - A string describing the type of value v (string)
    • boolean - A boolean value (true or false)
    • function - A function
    • nil - The special value nil
    • number - A numeric value
    • string - A string
    • table - A table
    • thread - A coroutine thread
    • userdata - Data external to the Lua environment (e.g. the main element of a Frame object)
This function is defined in the Lua standard libraries