Skip to content

type⚓︎

Returns the type of a given lua variable. It also provides the name of userdata variables.

local type, userdataType = type(variable)

Parameters:

  • variable (any): The variable to get the type of.

Returns:

  • type (string): The base type of the variable.
  • userdataType (string, nil): The userdata type of the variable.