Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API tostring

Last wiki revision 2022-08-03

Returns the string representation of any value. s = tostring(arg);

  • arg:Any - Value to convert to a string.
  • s: - string representation of the argument; possibly provided by the argument's metatable.

tostring(123) --Returns "123" tostring({}) --Returns "table: ###" tostring(function end) --Returns "function: ###" tostring(nil) --Returns "nil" tostring(true) --Returns "true"

Source

https://warcraft.wiki.gg/wiki/API_tostring · 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.