Either

angerangel edited this page Jan 3, 2013 · 1 revision
Clone this wiki locally

USAGE

   EITHER condition true-block false-block

DESCRIPTION

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

EITHER is a native value.

ARGUMENTS

  • condition
  • true-block (block!)
  • false-block (block!)

#SOURCE

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