Difference between revisions of "Print"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2011.6<br/> | |
− | ''' | + | '''Class:''' [[(global)]]<br/> |
− | ''' | ||
− | === | + | === Description === |
− | + | Receives any number of arguments, and prints their values to ''stdout'' using the [[tostring]] function to convert them to strings. | |
<source lang="lua"> | <source lang="lua"> | ||
print(e1,e2,...) | print(e1,e2,...) | ||
</source> | </source> | ||
− | === | + | ''print'' is not intended for formatted output, but only as a quick way to show a value, typically for debugging. |
− | '''e1''': (any) | + | |
− | '''e2''': (any) | + | For formatted output, use [[string.format]]. |
− | '''...''': (any) | + | |
+ | === Parameters === | ||
+ | '''e1''': (any) any argument<br/> | ||
+ | '''e2''': (any) any second argument '''optional'''<br/> | ||
+ | '''...''': (any) other optional arguments '''optional'''<br/> | ||
{{(global)}} | {{(global)}} |
Revision as of 22:20, 13 May 2022
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(e1,e2,...)
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.
Parameters
e1: (any) any argument
e2: (any) any second argument optional
...: (any) other optional arguments optional