Exit script function
Posted: 27 Jul 2017 16:28
Hi Martin. I would like to have a function that exits the current script directly. Kind of like the break statement exists from a loop.
Currently I have to include all the statements I want executed inside the brackets of an if statement and it confuses the code a bit.
Or maybe something in the form of a throw exception statement with some kind of info attached to it. Then I would link that script to a debug dialog or other script for error handling.
Thanks.
Currently I have to include all the statements I want executed inside the brackets of an if statement and it confuses the code a bit.
Or maybe something in the form of a throw exception statement with some kind of info attached to it. Then I would link that script to a debug dialog or other script for error handling.
Thanks.