WoW:API print: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: {{wowapi}} Print an argument to the default chat frame. print("Hello, WoW!") == Parameters == === Arguments === :("arg1"[, "argN"]) :;arg1 : object to print :;argN : object to print, s...)
 
Line 18: Line 18:


Each argument given is printed separated by a space from the previous one.
Each argument given is printed separated by a space from the previous one.
Unlike DEFAULT_CHAT_FRAME:AddMessage(), '''print()''' will allow the output nil values to the chat frame without causing an error message.


'''print()''' was added in 3.0.2 (8926)
'''print()''' was added in 3.0.2 (8926)

Revision as of 00:24, 15 June 2009

WoW API < print

Print an argument to the default chat frame.

print("Hello, WoW!")

Parameters

Arguments

("arg1"[, "argN"])
arg1
object to print
argN
object to print, separated by a space from the previous object.

Returns

nil

Details

This function serves as a cleaner replacement from DEFAULT_CHAT_FRAME:AddMessage().

Each argument given is printed separated by a space from the previous one.

Unlike DEFAULT_CHAT_FRAME:AddMessage(), print() will allow the output nil values to the chat frame without causing an error message.

print() was added in 3.0.2 (8926)