forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Case
angerangel edited this page Mar 15, 2013
·
1 revision
CASE block /all
Evaluates each condition, and when true, evaluates what follows it.
CASE is a native value.
- block -- Block of cases (conditions followed by values) (block!)
- /all -- Evaluate all cases (do not stop at first true case)
#SOURCE
case: make 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)}
] ]