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

REBOL 3 Functions: forever

forever  body

Evaluates a block endlessly.

Arguments:

body [block!] - Block to evaluate each time

See also:

loop   repeat   for   while   until  

Description

Evaluates a block continuously, or until a break or error condition is met.

forever [
    if (random 10) > 5 [break]
]


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