Difference between revisions of "Print"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Receives any number of arguments, and prints their values to `stdout`, using the `tostring` function t...")
 
Line 4: Line 4:
 
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`.
 
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`.
 
<source lang="lua">
 
<source lang="lua">
= print(e1e2...,)
+
print(e1,e2,...)
 
</source>
 
</source>
'''e1:''' (any) any argument ''''''<br/>
+
'''e1''': (any) any argument ''''''<br/>
'''e2:''' (any) any second argument '''optional'''<br/>
+
'''e2''': (any) any second argument '''optional'''<br/>
'''...:''' (any) other optional arguments '''optional'''<br/>
+
'''...''': (any) other optional arguments '''optional'''<br/>

Revision as of 10:20, 23 August 2018

Available since: Gideros 2011.6

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,...)

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