REBOL Programming/while

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

WHILE cond-block body-block 

DESCRIPTION:[edit]

While a condition block is TRUE, evaluates another block.

WHILE is a native value.

ARGUMENTS[edit]

  • cond-block -- (Type: block)
  • body-block -- (Type: block)

SOURCE CODE[edit]

while: native[
    {While a condition block is TRUE, evaluates another block.} 
    cond-block [block!] 
    body-block [block!]
]