411 REFERENCE · Wikibooks
Lua Programming/print
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Usage
print ( [ LIST ] )
The print /function/ is /variadic/ and is used to produce simple standardized /output/. A /comma/ separated /list/ of items for /output/ is provided in the /argument/ list.
Examples
print ("Hello")
The newline is automatic
In lua, the /print/ function automatically outputs a /newline/, so there is no need to embed a newline/escape sequence/ into the output string.
Supression of the automatic newline
The /write/ command provides the same functionality as the print function, but does not automatically output the /newline/ character.