off cycle1 Example

10    ON CYCLE 5 GOTO Here  !Wait 5 seconds then go to line 160.
20    Start=TIMEDATE
30    CLEAR SCREEN
40    LOOP
50      PRINT "Waiting"
60      WAIT 1
70      IF TIMEDATE-5>Start THEN !If it waits longer than 5 seconds, then test will fail.
80        PRINT "Cycle is off."
90        OFF CYCLE
100     END IF
110     IF TIMEDATE-6>Start THEN
120       PRINT "Forcing stop."
130       STOP
140     END IF
150   END LOOP
160 Here: PRINT "OFF CYCLE worked correctly."
170   END