REBOL Programming/either

< 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

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.