Difference between revisions of "Print"

From GiderosMobile
Line 3: Line 3:
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/(global)|(global)]]<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/(global)|(global)]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate>Receives any number of arguments, and prints their values to `stdout`, using the `tostring` function to convert them to strings. print is not intended for formatted output, but only as a quick way to show a value, typically for debugging. For formatted output, use `string.format`.</translate>
+
<translate>Receives any number of arguments, and prints their values to ''stdout'', using the [[Special:MyLanguage/tostring|tostring]] function to convert them to strings. print is not intended for formatted output, but only as a quick way to show a value, typically for debugging. For formatted output, use [[Special:MyLanguage/string.format|string.format]].</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  print(e1,e2,...)
 
  print(e1,e2,...)

Revision as of 10:36, 24 August 2018

Available since: Gideros 2011.6
Class: (global)

Description

Receives any number of arguments, and prints their values to stdout, using the tostring function to convert them to strings. print is not intended for formatted output, but only as a quick way to show a value, typically for debugging. For formatted output, use string.format.

 print(e1,e2,...)

Parameters

e1: (any) any argument
e2: (any) any second argument optional
...: (any) other optional arguments optional