How to erase the message after the outlet of the gate has been changed?

Anton Kuznetsov's icon

I have set up a gate with 3 outlets. How do I delete the message (change it to 0 if integer) when the working outlet of the gate changes?

Florent Ghys's icon

hey, maybe [t b] > [delay 100] > [t 0] > back to gate's inlet?
Florent

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Do you mean that, just before gate is changed to a different outlet, you want the last number to come out of the outlet to be 0? If so...