REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 17-Aug-2010 Edit History  

REBOL 3 Functions: continue

continue

Throws control back to top of loop.

See also:

break   catch   exit   return   loop   repeat   for   forall   foreach   forever   forskip   while   until  

Description

The continue function is the opposite of break. It jumps back to the top of the loop instead of exiting the loop.

For example:

repeat n 5 [
    if n < 3 [continue]
    print n
]
3
4
5


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin