Exit - Function Summary

Summary:

Exits a function, returning no value.

Usage:

exit

Description:

EXIT is used to return from a function without returning a value.

test-str: make function! [str] [
    if not string? str [exit]
    print str
]
test-str 10
test-str "right"
right

Note: Use QUIT to exit the interpreter.

break - Breaks out of a loop, while, until, repeat, foreach, etc. catch - Catches a throw from a block and returns its value. return - Returns a value from a function.

results matching ""

    No results matching ""