Conditional execution of GH script

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

I guess you’re looking for StreamGate Component: (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.