How do you exit the UI.Vision script if a status==OK fails?

I am having trouble skipping the rest of a script if I get a bad status. This seems like it would be simple and basic to do, but I can find nothing on it in the forums or docs? Am I missing something? Or do you have a suggestion for me to follow?

To stop a macro you can use the throwError command.

Example:

throwError | Skipping the rest of this script because of a bad status