For making internal switch in any object to turn an effect on/off, you could try something like this:
/////////////// START
if(param_On){
Insert your effect code here !!!!!!!!!!!!!!!!!!!!!
}
else{
outlet_AudioOut = inlet_AudioIn;
}
/////////////////////////// END
So if you turn that On parameter on, it will process the code with in the first {} brackets, which should be your effects code. If On parameter is off, you process the code with in the else statements {} brackets, which in this case sends the input directly to the output.
If you want to have an inlet, instead of the On parameter, you can replace "param_On" with a yellow inlet, called "inlet_on". For example..... 