Calling the procedure Exit will immediately end the execution of the script, at that point in the script.
Any code lines following the Exit function will not be executed.
Within the Map, the next event will still be executed (unless a function like LogError or CancelExecution was called prior to Exit);
Declaration: Procedure Exit;
Example