Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API print
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{framexmlfunc|RestrictedEnvironment.lua}} Passes its arguments to the current print output handler. By default, this will output them all to the default chat frame. print(...) == Arguments == ; ... : Any - any number of any type of values. == Example == print("Hello, WoW!") prints <code>Hello, WoW!</code> print("Hello", "this is a", nil, "value") (note that "nil" is '''not''' in double quotes) prints <code>Hello this is a nil value</code> print("Hello", "this is a"..nil, "value") Throws the error, "attempt to concatenate a nil value" print("Hello", "this is a", {}, "value") prints <code>Hello this is a table: ###### value</code> == Details == * 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 {{api|setprinthandler}}(func). * This function serves as a cleaner replacement from DEFAULT_CHAT_FRAME:AddMessage(); unlike which, it can safely be used to output nil values. == History == * Added in 3.0.2 (8926)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Framexml
(
edit
)
Template:Framexmlfunc
(
edit
)
Template:Icon-information
(
edit
)
Template:Wowapi
(
edit
)
Template:Wowtoolsfilelink
(
edit
)