PRINT

Core command PRNT

Prints text. Unquoted words are joined with ", "; quote the text to print it verbatim. In Scripts, prefer ECHO 'message', which prints the text exactly as written and can include ${name} variable values.

Arguments

<text> text to print, if empty prints a blank line

Examples

PRINT Hello World;

Notes

Prints text to the console: PRINT <text> (or PRNT).

With no argument, prints a blank line. Unquoted text is split on spaces and rejoined with ", " - so PRINT Hello World; prints Hello, World, not Hello World. To print multi-word text verbatim, quote it: PRINT "Hello World";.

In Scripts, prefer ECHO 'message';: it prints the text exactly as written, can include variable values with ${name}, and is never hidden by OUTPUT QUIET.

Last modified in release 5.3.3.