ON

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
ON nbr GOTO | GOSUB target1 [, target2, ...]

Description:

ON either branches (GOTO) or calls a subroutine (GOSUB) based on the rounded value of 'nbr'; if it is 1, the first target is called, if 2, the second target is called, etc. 
Target can be a line number or a label. 
New programs should use SELECT CASE.

 

Last edited: 06 October, 2020