Gaming
 

API tostring

From WoWWiki

Native Lua statement:

Arguments
tostring(arg)
arg - this value will be converted to a string value.

Returns
A string representation of arg.

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


 


This is a Lua function and documented as part of the World of Warcraft API