I am working on a popup which contains a number of data entry controls. When the user presses the Save button, I want to carry out a number of checks to ensure the data is valid. If any one of these checks fail, I would like to quit the script immediately without carrying out the remaining checks. Is this possible?
The best I’ve managed to come up with is setting a flag on failure, and checking this flag is not set before each subsequent check.