REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: exit

exit

Exits a function, returning no value.

See also:

return   catch   break  

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"

Note: Use quit to exit the interpreter.


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin