Switch (Output) Bug

Seems that the Switch Output has a kind of evaluation bug.
All outputs hold their last state like s+h. Or is this a feature that i missed?

Switch(output) bug.v4p (6.1 kB)

Thats as designed I believe, I’ve always found it a little strange, but then I’m yet to use the node in any project, I’ve tried but that S+H is a bit weird to predict!

i used it like this sometime

Switch (Value Output reset).zip (2.9 kB)


nice & usefull trick

saved my day.
thank you ggml!

this one is very much related (with a imo more elegant solution by woei):