![]() |
<< Index >> |
FutureBasic |
continue | statement | |
|
while ( x < 100 ) // the continue below branches here directly, does the conditional test and starts another loop iteration.
x++
if ( x == 25 ) then continue // skips the remainder of this loop iteration and resumes at the while's conditional test above
fn CallSomeThingElse
wend
fn DoSomeGoodWork
Example2
Note: inside nested loops,
for i = 1 to 50 // the continue below has no impact on this outer for loop
while ( x < 100 )
x++
if ( x == 25 ) then continue // skips the remainder of this while loop iteration and resumes at the while's conditional test
fn CallSomeThingElse
wend
fn DoSomeGoodWork
next
See also
break; for; while; do; select case; exit [structure]