On this page

PRINT

Core command PRNT

Prints text on the console; in Scripts, prefer ECHO.

Syntax

PRINT [<text>]

Arguments

ArgumentRequiredValuesDefault
<text>NoWords, joined with a comma; text in double quotes is printed as writtenA blank line

Examples

PRINT "Hello World";
PRINT Hello World;
PRINT;

Details

Without text, PRINT prints a blank line. Unquoted text is split on spaces and joined again with a comma and a space: PRINT Hello World; prints Hello, World. To print several words as written, put them in double quotes: PRINT "Hello World"; prints 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.5.0.

Found something wrong or unclear on this page? , with the page address.