EasyManua.ls Logo

Trio Motion Coordinator MC216 - Program Loops and Structures

Trio Motion Coordinator MC216
566 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-65
Program Loops and Structures
Program Loops and Structures
BASICERROR
Type:
Program Structure
Description:
This command may only be used as part of an
ON... GOSUB
or
ON... GOTO
com-
mand. When used in this context it defines a routine to be run when an error occurs
in a Trio BASIC command.
Example:
ON BASICERROR GOTO error_routine
....(rest of program)
error_routine:
PRINT "The error ";RUN_ERROR[0];
PRINT " occurred in line ";ERROR_LINE[0]
STOP
ELSE
Type:
Program Structure
Description:
This command is used as part of a multi-line
IF
statement.
See Also
IF, THEN, ENDIF
ELSEIF
Type:
Program Structure
Syntax:
IF <condition1> THEN
commands
ELSEIF <condition2> THEN
commands
ELSE
commands
ENDIF

Table of Contents

Related product manuals