Exit
The Exit function terminates the script and, optionally, lists a message in the Script Messages window.
Exit( sMsg=nil ) |
The Exit function leaves the script immediately. You can use it anywhere in a script or in a function called by the script. In comparison, the Assert function tests an argument and exits the script only if the argument tests false.