PRINT

Function

PRINT displays data on the LCD screen.

Syntax

PRINT expressions [;]

or

? expressions

The question mark is exactly equivalent to PRINT

Example

PRINT X,Y,Z$

Prints the values of the three variables X,Y, and Z$ in columns 1, 14, and 28 and finishes with CR/LF. A PRINT statement with no expressions Just performs the CR/LF functions.

Remarks

The comma between the expressions move the print cursor to the next zone, where each zone is fourteen spaces wide. The use of semi-colons causes the values to be printed together without gaps. However, numerical data leaves a space at the start for the minus sign, and includes one blank space afterwards. A semi-colon at the end of the line suppresses the CR/LF.

Examples:

PRINT "FOOT' + "BALL"

outputs: FOOTBALL

X=2
PRINT X;"SQUARED IS";
PRINT X*X

outputs: 2 SQUARED IS 4

A=1
IF A<2 THEN PRINT "A=";A

outputs: A= 1

PRINT CHR$(1);

will clear the LCD display.