Home  Contents

type

Global Lua Commands

SYNOPSIS

type(v)

DESCRIPTION

Returns the type of its only argument, coded as a string. The possible results of this function are "nil" (a string, not the value nil), "number", "string", "boolean", "table", "function", "thread", and "userdata".

EXAMPLE

print(type(print))
function