Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API type

Last wiki revision 2022-07-22

This function returns the type of variable was passed to it. t = type(arg1);

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

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

Source

https://warcraft.wiki.gg/wiki/API_type · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.