PRINT

From Smart Box
Jump to navigation Jump to search

Syntax[edit]

PRINT printlist

Description[edit]

The PRINT command is used to print a text string or variable to the text window. The command is followed by a list of items to print. Anything within inverted commas will be printed as it is. Anything not within inverted commas is assumed to be a variable and the current contents of the variable will be printed. A semi-colon after an item in the list will print the next item on the same line. An apostrophe between items in the list forces the following item to be printed on a new line.

Example[edit]

PRINT "This is a text string"
produces
This is a text string
PRINT "The value of INPUT 0 is ";INPUT 0
produces
The value of INPUT 0 is 0
PRINT SENSOR A'SENSOR B'SENSOR C'SENSOR D
produces
28
28
28
28

Associated keywords[edit]