Custom script failure

In some cases, you may need to create a very specific criterion for causing a script to fail. Some possible scenarios are checking the number of products shown on a page, checking for a certain number of unread emails, or performing more complex validations such as "if item a is shown, item b should also be shown, but if item c is shown, then item d should be shown".

A very basic sample script for how this is done can be downloaded here: Custom_Script_Failure.gsl