Dynamic scripts/handlers?

I have been using handlers and other scripts in my current running scripts to prevent code redundancy.
In our new release of the application in some cases some addiotnal info texts would pop up on the screen. I don’t want to write new scripts for these.
Is there a way I could just “ignore” these pop ups in my existing handlers or scripts?
Say if it occurs then do this and if not just do nothing and execute the next line of code?

Thanks in advance

Solved - it was so much easier than I thought :mrgreen: