Continue
Previous  Next

Description: Interrupts the normal execution of a loop. Any statements after the Continue command will be skipped and the next iteration of the loop will begin.

     Syntax:

Continue <LoopType>

Part
Description
<LoopType>
Required. This is type of loop you're in that you want to jump to the next iteration. Valid <LoopType> values are For, While, Do, and Loop. Both Do and Loop are identical.

Notes: Be careful when using Continue in Do and While loops as you can easily create an infinite loop on accident.

Example:

        a = 1
        Do While a < 10
                a++
                If a > 3 The Continue Do
                Print a
        Loop