Either - Geomol/World GitHub Wiki
Usage
either condition true-block false-block
Description
If condition is true, evaluates the first block, else evaluates the second.
either is a function!
Arguments
condition -- [any-type!]
true-block -- [block!]
false-block -- [block!]
Examples
w> num: 5
== 5
w> either zero? num and 1 ["Even"] ["Odd"]
== "Odd"
w> print either zero? num and 1 ["Even"] ["Odd"]
Odd
w> num: 50
== 50
w> print [num "is" either zero? num and 1 ["Even"] ["Odd"]]
50 is Even