Lore archive · Warcraft Wiki, 2023 dump
API print
Last wiki revision 2013-11-26
Passes its arguments to the current print output handler. By default, this will output them all to the default chat frame. print(...)
- ... : Any - any number of any type of values.
print("Hello, WoW!") prints
print("Hello", "this is a", nil, "value") (note that "nil" is not in double quotes)
prints
print("Hello", "this is a"..nil, "value") Throws the error, "attempt to concatenate a nil value"
print("Hello", "this is a", {}, "value") prints
- This function is a securecall/forceinsecure wrapper around the current print output handler function. Instead of attempting to replace it, you can set your own output handler function using (func).
- This function serves as a cleaner replacement from DEFAULT_CHAT_FRAME:AddMessage; unlike which, it can safely be used to output nil values.
- Added in 3.0.2 (8926)
Source
https://warcraft.wiki.gg/wiki/API_print · 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.