Rebol Programming/if

USAGE:

edit
IF condition then-block /else else-block 

DESCRIPTION:

edit

If condition is TRUE, evaluates the block.

IF is a native value.

ARGUMENTS:

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

REFINEMENTS:

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

SOURCE CODE

edit
if: native[
    "If condition is TRUE, evaluates the block." 
    condition 
    then-block [block!] 
    /else "If not true, evaluate this block" 
    else-block [block!]
]