CONTINUE
Purpose To command the CPU to jump to the next iteration of the WHILE..ENDWHILE  or FOR..NEXT loop
Syntax

CONTINUE

This new command is available to all Super PLCs since firmware version r30. Upon executing the CONTINUE command the CPU will jump to the next iteration in the WHILE..ENDWHILE or FOR..NEXT loop.

Examples FOR I = 1 to 10000
   X = X + 1
   IF INCOMM(1) < 0
      CONTINUE
   ENDIF
   Y = Y + 2
NEXT
Comments: If INCOMM(1) returns a -1 as in the second line of the FOR loop, the CPU will not execute the Y = Y + 2  statement, but will instead jump to the next iteration, which is to increment index I by 1 and start executing the statement X = X + 1.
See Also WHILE..ENDWHILE , FOR..NEXT , EXIT

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual