REBOL Programming/break

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

USAGE:[edit]

BREAK /return value 

DESCRIPTION:[edit]

Breaks out of a loop, while, until, repeat, foreach, etc.

BREAK is a native value.

REFINEMENTS[edit]

  • /return -- Forces the loop function to return a value.
    • value -- (Type: any-type)

SOURCE CODE[edit]

break: native[
    {Breaks out of a loop, while, until, repeat, foreach, etc.} 
    /return "Forces the loop function to return a value." 
    value [any-type!]
]

{{BookCat}}