Forces script execution to stop at any time.
The Quit method can return an optional error code. If the Quit method is the final instruction in your script (and you have no need to return a non-zero value), you can leave it out, and your script will end normally.
The following JScript code snippet quits execution and returns an error code of 1:
Quit(1); // This line of code is never executed. var i = 0;