Next / Previous / Contents / TCC Help System / NM Tech homepage

13.9. The print statement

To print the values of one or more expressions e0, e1, ..., use a statement of this form:

print e0, e1, ...

The values are converted to strings if necessary and then printed with one space between values.

Normally, a newline is printed after the last value. However, you can suppress this behavior by appending a comma to the end of the list. For example, this statement

print "State your name:",

would print the string followed by one space and leave the cursor at the end of that line.