Script EXIT Statement

EXIT

The EXIT statement defines a point to leave the script. EXIT has no parameters.

An exit is assumed after the last statement in a script. Thus, an EXIT statement is not required in any script. More than one EXIT statement may be used in a script.

If an ONEXIT statement exists in a script, the ONEXIT block is executed before exiting. If the ONEXIT statement includes an EXIT statement, an exit occurs immediately when that EXIT is executed.

Copyright © 2017 American Chemical Society. All Rights Reserved.