REBOL Document

Forever - Function Summary


Summary:

Evaluates a block endlessly.

Usage:

forever body

Arguments:

body - Block to evaluate each time (must be: block)

Description:

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


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

Related:

loop - Evaluates a block a specified number of times.
until - Evaluates a block until it is TRUE.
while - While a condition block is TRUE, evaluates another block.


<Back | Index | Next>

Copyright 2004 REBOL Technologies