Jump to content

Rebol Programming/break

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
BREAK /return value 

DESCRIPTION:

[edit | edit source]

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

BREAK is a native value.

REFINEMENTS

[edit | edit source]
  • /return -- Forces the loop function to return a value.
    • value -- (Type: any-type)

SOURCE CODE

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