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 CODEEdit

if: native[
    "If condition is TRUE, evaluates the block." 
    condition 
    then-block [block!] 
    /else "If not true, evaluate this block" 
    else-block [block!]
]
Last modified on 30 October 2012, at 11:27