The jump destination is selected according to the value of the expression written here.
・The value must be numeric.
Jump destination when the value of the expression is 0
Jump destination when the value of the expression is 1
・Prepare as many destinations as you need.
・Strings cannot be used for the ON to GOTO labels.
ON IDX GOTO @JMP_A,@JMP_B PRINT OVER:END @JMP_A PRINT "IDX=0":END @JMP_B PRINT "IDX=1":END
The jump destination is selected according to the value of the expression written here.
The value must be numeric.
Jump destination when the value of the expression is 0
Jump destination when the value of the expression is 1
:
・Prepare as many destinations as you need.
・Strings cannot be used for the ON to GOSUB labels.
ON IDX GOSUB @SUB_A,@SUB_B PRINT EXIT:END @SUB_A PRINT "IDX=0":RETURN @SUB_B PRINT "IDX=1":RETURN
・If you press the + Button during program execution, the program will normally stop. But, you use ON BREAK GOTO to jump to the specified label.
・Once you jump to the registered label, the registration is canceled.
・If the program stops due to an error, TRACE,STOP execution, forced stop by pressing + Button, programs start from the Top Menu, etc., it will not jump even if a label is registered.
Jump destination when program stops
ON BREAK GOTO @FINISH LOOP ENDLOOP @FINISH PRINT "Stopped!"