PRINT
 
Syntax

PRINT [expressionlist] [(, | ;)] ...

Description


Prints expressionlist to screen.

Expressionlist can be constant string, constant numbers, variables, string variables or expressions consisting ov variables and numbers.  Seperated by either , or ;

Using a comma (,) as separator or in the end of the expressionlist will place the cursor in the next column (every 5 characters), using a semi-colon (;) won't move the cursor. If neither of them are used in the end of the expressionlist, then a new-line will be printed.

PRINT statements send data out the serial port.  There is a 16 byte FIFO in the serial port, once that is filled BASIC will wait for space to be available.

Example

DIM A$(10)
A$ = "World"


'' new-line

PRINT "Hello World!"PRINT "Hello World!"

'' no new-line
PRINT "Hello"; "World"; "!";
PRINT

'' column separator
PRINT "Hello!", "World!"

PRINT "3+4 =",3+4

y=4321
x=1234
PRINT "sum=",x+y 
 
Differences from other BASICs

See also