exit
repeat
if
switch
tell
try
exit
handlerName
exit
to
object with
error
errorMessage
HandlerName is the name of the handler containing the exit
statement. Object yields the interpreter
. ErrorMessage yields any string
.
The exit
statement sends control to the end of the specified structure, ending execution of the control structure. Any statements not yet executed in the specified control structure are ignored, and execution continues after the end
of the control structure. The exit
handlerName form ends execution of an on
or function
structure.
The exit
to
object form causes the currently executing script to stop executing. No more statements are executed after an exit
to
object, ever. The with error
parameter allows extra information to be passed back to whatever initiated the execution of the script. OpenXION currently ignores this parameter.
If an exit
statement is used outside its corresponding structure, a script error is triggered.