REBOL Programming/case

USAGE:Edit

CASE block /all 

DESCRIPTION:Edit

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

CASE is a native value.

ARGUMENTSEdit

  • block -- Block of cases (conditions followed by values) (Type: block)

REFINEMENTSEdit

  • /all -- Evaluate all cases (do not stop at first true case)

SOURCE CODEEdit

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)}
]

{{BookCat}}
Last modified on 27 October 2012, at 22:16