Catch - Function SummarySummary:Catches a throw from a block and returns its value. Usage:catch block Arguments:block - Block to evaluate (must be: block) Refinements:/name - Catches a named throw. word - One or more names (must be: word block) Description:CATCH and THROW go together. They provide a way to exit from a block without evaluating the rest of the block. To use it, provide CATCH with a block to evaluate. If within that block a THROW is evaluated, it will return from the CATCH at that point. The result of the CATCH will be whatever was passed as the argument to the THROW. When using multiple CATCH functions, provide them with a name using the /NAME refinement to identify which one will CATCH which THROW.
Related:do - Evaluates a block, file, URL, function, word, or any other value.
| ||||
|