Quirrel4.41.0

print

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

Writes its arguments to the output stream.

Parameters

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

Return value

null.

Notes

Several arguments in one call are joined with a single space; two separate calls are not - nothing is inserted between them, so print("a"); print("b") reads ab. print adds no trailing newline; call println for that, or end with a bare println().

Goes to the output stream (stdout on the command-line host) - the stream error and errorln never touch.

Example

examples/globals/print.nut
print("no")
print("gap")            // two calls, no newline between: text runs together
println()

print("a", "b", "c")    // one call, several arguments: joined with a single space
println()

println("type(print(\"x\")):")
println(type(print("x")))  // print's own return value
Output:
nogap
a b c
type(print("x")):
xnull

See also

printlnWrites its arguments to the output stream, followed by a newline.
errorWrites its arguments to the error stream.
globalsmodule index