on Example

10    X=2
20    ON X GOTO L1,L2
30 L1: PRINT "Line one."
40 L2: PRINT "Line two."
50    END