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