google-apps-script what is the Exit command

Viewed 19517

In my Google Apps Script, when I catch an error, I email a log of the error then I want to exit the script immediately.

I cannot find a command to immediately terminate the script (the equivalent of PHP's exit(). Please can someone tell me how to do this?

Thanks in advance Alec

2 Answers

If you want to finish to run your function use

 return;
Related