Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

PRINT

Description

PRINT is a standard BASIC command that can be used to output variables and other stuff to the terminal. In the Avisaro Scripting Language, all PRINT outputs go the currently selected I/O interface, that can be RS232, CAN, SPI or IIC.  Printable are string constants, numeric variables, string variables and array elements. Normally, every PRINT adds a CR/LF to the printed object in order to jump to the next line on a terminal. If you don't want that, put a semicolon at the end of a PRINT statement. In this case, CR/LFs are suppressed an the next PRINT statement continues in the same line. PRINT only works if the OUTMODE is correctly set.

Example

This little example shows some PRINTed lines:

outmode -2
let a = 1
let b$ = "hello"
print "This is line: ";
print a
print "This is another line"
print "Printing a string variable -->";
print b$

Remarks

Use the OUTMODE command with -2 or -3 in order to print on the terminal.
Because of memory constraints, it is advisable that every PRINT statement should only be used to print a single object.