CONTINUE |
Top Previous Next |
Continue with the next iteration of a loop.
Syntax <loop_statement> BEGIN ... CONTINUE; ...
The rest of the loop is skipped and the next iteration is started.
Example EXECUTE UDSBLOCK AS BEGIN I = 1; WHILE (i < 10) DO BEGIN i = i + 1; IF (Math.Mod(i, 2) = 0) /* check for even numbers, skip the loop if even */ THEN CONTINUE; ELSE BEGIN /* do stuff */ END END END
In this loop, the value of i is increased. Next, the value of i is checked to see if it's an even value, if so, CONTINUE is used and we're back at evaluation the WHILE condition again. |