Previous Topic: pute--Set an Environment Variable (Function)Next Topic: qqout--Write Output to stdout (Function)


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

The qout function writes output followed by linefeed to stdout. The function 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 suppress or redirect the output. The output terminates with a linefeed character.

The function has the following syntax:

qout([x,...])
x

(Optional) Defines a list of arguments to display. If the list is empty, a linefeed character is printed.

This function does not return a value.

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.

Note: The ? command can only be used at the beginning of a line. To output text from within an expression, use the corresponding qout() function:

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

See also:

qqout--Write Output to stdout (Function)

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