< Rebol Programming

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 -- (Type: any)
  • true-block -- (Type: block)
  • false-block -- (Type: block)

SOURCE CODE

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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.