Rebol Programming/else

USAGE:

edit
EITHER condition true-block false-block 

DESCRIPTION:

edit

If condition is TRUE, evaluates the first block, else evaluates the second.

EITHER is a native value.

ARGUMENTS

edit
  • condition -- (Type: any)
  • true-block -- (Type: block)
  • false-block -- (Type: block)

SOURCE CODE

edit
either: native[
    {If condition is TRUE, evaluates the first block, else evaluates the second.} 
    condition 
    true-block [block!] 
    false-block [block!]
]