Quirrel4.41.0

println

Global, available without an import
println(...)

Writes its arguments to the output stream, followed by a newline.

Parameters

...anyvalues to write; each is converted the way tostring would convert it repeats

Return value

null.

Notes

Same stream as print, and the same one-space join between several arguments; the only difference from print is the trailing newline. println() with no arguments writes just that newline.

Example

examples/globals/println.nut
println("a")
println("a", "b", "c")   // joined the same way as print, one space between args
println()                 // just the newline, no arguments needed
println("type(println(\"x\")):")
println(type(println("x")))
Output:
a
a b c

type(println("x")):
x
null

See also

printWrites its arguments to the output stream.
errorlnWrites its arguments to the error stream, followed by a newline.
globalsmodule index