Abort script nicely

Solved320 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

gilles Selected answer as best November 29, 2022
0

Hi Gilbert,

Try “return”

if([whatever check])

return

gilles Selected answer as best November 29, 2022
You are viewing 1 out of 3 answers, click here to view all answers.