Multibranch GOTO/GOSUB [ HP Business BASIC/XL Migration Guide ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Migration Guide
Multibranch GOTO/GOSUB
Multibranch GOTO/GOSUB statements are automatically translated as
indicated below:
Multibranch GOTO/GOSUB statements have the following form:
[ GOTO / GOSUB ] (expression) OF (label), (label),...
The BASIC/V compiler ignores the GOTO or GOSUB and passes control to the
next statement if the value of the expression is either less than one or
greater than the number of labels in the list. In HP Business BASIC/XL,
that condition generates an error.
BASIC/V statement:
10 ON J GOTO 100,200,300
20 PRINT A$
The statement translates into HP Business BASIC/XL as shown below:
10 ON J GOTO 100,200,300 ELSE CONTINUE
20 PRINT A$
MPE/iX 5.0 Documentation