Garry's Mod Wiki

Revision Difference

Global.print#517490

<function name="print" parent="Global" type="libraryfunc"> <description> Writes every given argument to the console.&amp;lt;br /&amp;gt; Automatically attempts to convert each argument to a string. (See <page>Global.tostring</page>)&amp;lt;br /&amp;gt; Separates arguments with a tab character (`"\t"`). Writes every given argument to the console. Automatically attempts to convert each argument to a string. (See <page>Global.tostring</page>) ⤶ Seperates lines with a line break (`"\n"`) ⤶ Separates arguments with a tab character (`"\t"`).⤶ </description> <realm>Shared and Menu</realm> <args> <arg name="args" type="vararg">List of values to print.</arg> </args> </function> <example> <description>Prints "Hello World! Yay!" to the console.</description> <code>print("Hello World!", "Yay!")</code> <outputfixedwidth>Fixed width</outputfixedwidth> <output>Hello World! Yay!</output> </example>