Abort script nicely

Solved1.41K viewsScripting
0

Hi,

In my script, I check the user input, and in case I find something wrong, I want to inform the user (using “Alert()” to send a custom message) and then quit the script nicely. I did not find anything other than “assert 1==0”, but this gives another annyoing pop-up to the user. Using “System.exit(0)” exits the script, but closes Quantrix as well, which is not the idea.

Any ideas?

Thanks, Gilbert

Gilbert Selected answer as best November 29, 2022
0

I also did try “return”, unfortunately, this does not work (e.g. the script just continues).

Gilbert

Gilbert Answered question November 29, 2022
You are viewing 1 out of 3 answers, click here to view all answers.

Latest Questions