Last modified on 27 October 2012, at 22:10

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.

ARGUMENTSEdit

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

SOURCE CODEEdit

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

{{BookCat}}