BREAK
Command:
BREAK
command is used to exit the nearest
enclosing WHILE
, DO
, or FOREACH
loop.
It functions similarly to the Java break
Statement.do count 1 7 1 if count EQ 4 then BREAK say "The count is at ^count" enddo
BREAK
explain file for more details.CONTINUE
Command:
CONTINUE
command is used to quit the current iteration and
starts the next one of the nearest enclosing WHILE
, DO
,
or FOREACH
loop. It functions similarly to the Java
continue
Statement.SAY
when count
is 4
:
do count 1 7 1 if count EQ 4 then CONTINUE say "The count is at ^count" enddo
CONTINUE
explain file for more details.