When do you use Exit Script step?

Discussion created by Bzhu on Nov 27, 2018
Latest reply on Feb 8, 2019 by

so, coming from a CS major, i like to put exit script at the end of my script, with 'result: 0' for normal exit. If somewhere that branches to an exit, like when the user click 'cancel' on a custom dialog to cancel what they wanted to do, then i put 'result: 1'. I am concern that it may cause unintended consequence (bug).

What is your take on that?

Do you exit w/ a result?

Do you exit at end of all script? do you let FMPro handle it all (don't put exit script at the end)?

Thanks for your attention.