Programmer Guide/Command Reference/CONTINUE: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
<!-- C.G. 14.3.2011 --> | <!-- C.G. 14.3.2011 --> | ||
<!-- A.N. 27.4.2011 --> | <!-- A.N. 27.4.2011 --> | ||
==Example== | |||
for #i := 0 to $#i < $#table[] step #i := int $#i + 1 | for #i := 0 to $#i < $#table[] step #i := int $#i + 1 | ||
if '$#table[$#i,ID]' <= '100' continue | if '$#table[$#i,ID]' <= '100' continue | ||
// do something with all IDs above 100 | // do something with all IDs above 100 | ||
end | end |
Revision as of 11:36, 27 April 2011
The CONTINUE
command skips the rest of the body of a loop, effectively continuing execution with the next iteration of the respective loop. Obviously, this command may only be used inside a loop.
Usage
CONTINUE
Result
The CONTINUE
command do not generate a return value and do also not change the variable RC
.
See also
control commands, BREAK, DO, WHILE, FOR, FOREVER, END
Example
for #i := 0 to $#i < $#table[] step #i := int $#i + 1 if '$#table[$#i,ID]' <= '100' continue // do something with all IDs above 100 end