Previous Topic: ?? Command--Write Output in a List to stdout (Cmdlet)Next Topic: accept Command--Read String From stdin and Assign it to a Variable (Cmdlet)


? Command--Write Output to stdout (Cmdlet)

This command (cmdlet) writes the string representation of each argument in a list to stdout. A single space is automatically placed between each argument. The set console and set alternate commands can redirect or suppress the output. The output terminates with a linefeed character.

The command has the following syntax:

? [x]
x

(Optional) List of arguments to output. If the list is empty, only a linefeed character prints.

Examples

Print "Hello World!":

? "Hello World!"

Print a list of numbers:

? 1,2,3

Print an empty line:

?

Output the numbers from 1 to 10. The ? command can only be used at the beginning of a line, to output text from within an expression the corresponding qout() function must be used:

for(i=1;i<11;i++) qout(i);

See also:

qout--Write Output Followed by Linefeed to stdout (Function)

qqout--Write Output to stdout (Function)

?? Command--Write Output in a List to stdout (Cmdlet)

set alternate to Command--Set Alternate Output File (Cmdlet)

set console Command--Suppress Console Output (Cmdlet)