Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-127
System Parameters and Commands
Example:
start:
The colon is also used to separate Trio BASIC statements on a multi-statement line.
The only limit to the number of statements on a line is the maximum of 79 charac-
ters per line.
Example:
PRINT "THIS LINE":GET low:PRINT "DOES THREE THINGS!"
Note:
The colon separator must not be used after a
THEN
command in a multi-line
IF..THEN
construct. If a multi-statement line contains a
GOTO
the remaining state-
ments will not be executed:
PRINT "Hello":GOTO Routine:PRINT "Goodbye"
Goodbye will not be printed.
Similarly with GOSUB because subroutine calls return to the following line.
’
Type:
Special Character
Description:
A single ' is used to mark a line as being a comment only with no execution signifi-
cance.
Note:
The REM command of other BASICs is replaced by '.
Like REM statements ' must be at the beginning of the line or statement or after the
executable statement. Comments use memory space and so should be concise in
very long programs. Comments have no effect on execution speed since they are
not present in the compiled code.
Example:
‘PROGRAM TO ROTATE WHEEL
turns=10
‘turns contains the number of turns required
MOVE(turns)’ the movement occurs here
#
Type:
Special Character