Rebol Programming/either
Jump to navigation
Jump to search
USAGE:[edit | edit source]
EITHER condition true-block false-block
DESCRIPTION:[edit | edit source]
If condition is TRUE, evaluates the first block, else evaluates the second.
EITHER is a native value.
ARGUMENTS[edit | edit source]
- condition -- (Type: any)
- true-block -- (Type: block)
- false-block -- (Type: block)
SOURCE CODE[edit | edit source]
either: native[ {If condition is TRUE, evaluates the first block, else evaluates the second.} condition true-block [block!] false-block [block!] ]