WoW:API tostring

From AddOn Studio
Revision as of 11:42, 8 August 2007 by WoWWiki>Egingell (New page: Native Lua statement: ;''Arguments'' :'''tostring(arg)''' ::'''arg''' - this value will be converted to a string value. ---- ;''Returns'' :: A string representation of ''arg''. ---- ;'...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"

Template:LUA