REBOL Programming/case

< REBOL Programming

USAGE:

CASE block /all 

DESCRIPTION:

Evaluates each condition, and when true, evaluates what follows it.

CASE is a native value.

ARGUMENTS

REFINEMENTS

SOURCE CODE

case: native[
    {Evaluates each condition, and when true, evaluates what follows it.} 
    block [block!] "Block of cases (conditions followed by values)" 
    /all {Evaluate all cases (do not stop at first true case)}
]

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.