This example demonstrates the use of the JUMP statement in an IF statement. A JUMP statement is also used to skip over an portion of the program which is only executed under certain conditions.
A=0
B=10
C=(A+B)**2
IF/C==10,JUMP/A2:
IF/A==10,JUMP/A1:
IF/B<>10,JUMP/A2:
A1:
D=C/(A+B)
JUMP/A3:
A2:
C=A*B*.5
A3:
NOTE: The
statement following the label A2: is executed only if C equals 10 or
if neither A, B nor C equals 10. In all other cases the statements
between labels A1: and A2: are executed, which includes an
unconditional jump to the statement labeled A3:. This in effect
bypasses the program section from A2: to A3: which is controlled by
several conditional branching statements.