How to cancel 'Add to folder' if condition is met?

Greetings,

Is there a lotusscript command to terminate a running event when a condition is met?

I have a script to check for attachments, and if they exist, I want to stop it before it gets added to the folder. I have this in the ‘QueryAddtoFolder’ event, however a simple ‘Exit Sub’ when the conditions are met obviously does not work. Is there a better ‘Terminate Event’ command I could use?

Subject: continue = false

Subject: LOL, CONTINUE… that’s what I was looking for. Thanks! [EOM]