Exits from a script.
exit
[-] main() [ ] INTEGER i [ ] i = 1 [ ] NonNegative(i) [ ] i = -1 [ ] NonNegative(i) [ ] i = 0 [ ] NonNegative(i) [ ] NonNegative(INTEGER i) [-] if(i < 0) [ ] exit [-] else [ ] Print(i, "is not negative") [ ] //This script prints: [ ] //1 is not negative
If the script is part of a suite, 4Test runs the next script in the suite.
The exit statement exits from a script without invoking the recovery system, that is, without calling DefaultTestcaseExit, DefaultScriptExit, TestcaseExit, or ScriptExit.