Print()

From Riftui Wiki

Jump to: navigation, search

Prints text representation (= result of calling tostring on value) of all its parameters to the default chat frame. Printed text is visible only on client executing this function.

Contents

Signature

print(...)

Parameters

... - values to print

Return value

This function doesn't have return value

Examples

print("Hello world!"); -- prints "Hello world!"
 
print("The number " .. 4 .. " is a number."); -- prints "The number 4 is a number." since string and number concatenation results into string
 
print(4); -- prints "4"
 
print({}); -- prints "table: 0xdeadbeef"
 
print(1, "test", print, {}); -- prints "1    test    function: 0xcafebabe    table: 0xbaadfood" (statements are separated by tabs)
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox