Easy conditional statement question

Ok, so this should be really easy, I just can’t figure out what the command is. I have a ‘try’ statment in an ‘on Clicked’ handler and inside the ‘on error’ part I want to be able to stop the handler so that it won’t execute any further commands.

I’ve tried ‘exit’, ‘stop’, ‘return’ and nothing seems to work, I know there is a command out there that will let me exit the handler but I just can’t figure out what it is, can someone help me out with this? It’s driving me nuts!!

Paul

Simply using “return” should do it. If not, you should post more of your code so we can see what’s going on.

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Ah, yes that did work, I realized the error was somewhere else in my code. I was creating an entry in the data object before the try and that is why an empty row was showing up in my NSTableView. Thanks a lot for the help.

Paul