Wikia

WoWWiki

Watchlist Recent changes

API tostring

Main Menue



Returns the string representation of any value.

s = tostring(arg);

Arguments Edit

arg 
Any - Value to convert to a string.

Returns Edit

String - string representation of the argument; possibly provided by the argument's metatable.

Examples Edit

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

Pages on WoWWiki

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

Latest Photos

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

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki