Wikia

WoWWiki

Watchlist Recent changes

API type

Main Menue



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

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"

Pages on WoWWiki

94,146pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,612photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki