REBOL Programming/try

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

TRY block 

DESCRIPTION:[edit]

Tries to DO a block and returns its value or an error.

TRY is a native value.

ARGUMENTS[edit]

  • block -- (Type: block)

SOURCE CODE[edit]

try: native[
    {Tries to DO a block and returns its value or an error.} 
    block [block!]
]