How to create a switch to deactivate a rule

I wonder if anyone has done this before