How to reset a counter / reset a filter

yo, I recently built an effect for Effect House with a simple Screen Tap to change options setup. Since this is a fairly common use case and I actually struggled for a bit to get it to work, I figured I’d post the setup here :stuck_out_tongue:

The weird thing is that to reset the counter, I had to add a node that takes the counter’s output as input and outputs something that connects to the Counter’s input :confused:

Here’s what it looks like (hopefully understandable)
Screenshot 2022-06-14 at 10.38.14

Something I’ll also point out is that I was using update events to check for the value before however that was useless and I ended up using two Screen Tap events (since you can’t connect the green outputs from these patches to more than one node)