Fandom

WoWWiki

API type

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW Lua

This function returns the type of variable was passed to it.

t = type(arg1);

Arguments Edit

arg1
Any - Value to query the type of.

Returns Edit

t
String - String representation of the argument's type passed: "nil", "number", "string", "boolean", "table", "function", "thread", or "userdata".

Example Edit

type("I am a string"); -- "string"
type(45); -- "number"
type({}); -- "table"
type(nil) -- "nil"

Also on Fandom

Random Wiki