Way to exit scrape from script

Hi,

I was looking at the documentation and I was wondering if there is command to exit a scrape from a script. I want to be able to exit the script if an extractor pattern finds something on a page as it means the information does not meet the criteria for a quote. Is there a command to stop the scrape from a script?

Apologies, I found the answer when I was looking up nullOrEmptyString. The session.stopScraping() function.

Regards,
Seamus