Conditional execution of GH script

Hello!
General question: Is it basically possible to ‘toggle’=‘activate/deactivate’ a part of a GH script by some condition, or a boolean toggle?
Thanks!

I guess you’re looking for StreamGate Component:


StreamGate.gh (16.9 KB)

Yes, exactly! That answers an old mystery.
Thanks a lot!!

StreamGate does work, but it is an older approach to this problem. I recommend the Sift and Combine components as they most closely resemble a standard conditional in programming.

Thanks, David!
Will check it out.