REBOL Document

Halt - Function Summary


Summary:

Stops evaluation and returns to the input prompt.

Usage:

halt

Description:

Useful for program debugging.


    div: 10
    if error? try [100 / div] [
        print "math error"
        halt
    ]

Related:

break - Breaks out of a loop, while, until, repeat, foreach, etc.
catch - Catches a throw from a block and returns its value.
exit - Exits a function, returning no value.
quit - Stops evaluation and exits the interpreter.


<Back | Index | Next>

Copyright 2004 REBOL Technologies