< Rebol Programming

USAGE:

IF condition then-block /else else-block 

DESCRIPTION:

If condition is TRUE, evaluates the block.

IF is a native value.

ARGUMENTS:

  • condition -- (Type: any)
  • then-block -- (Type: block)

REFINEMENTS:

  • /else -- If not true, evaluate this block
    • else-block -- (Type: block)

SOURCE CODE

if: native[
    "If condition is TRUE, evaluates the block." 
    condition 
    then-block [block!] 
    /else "If not true, evaluate this block" 
    else-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.