Is there a node that can be used to toggle any function from starting?

Hi,

I am wondering if there is a node that I can use to prevent certain functions from within my graph from starting, until I hit a button/ toggle a boolean?
Or if not, I would be grateful if someone could help me out with a python script?
I’m thinking something as follows would work:
2No. Inputs
Input 1) A boolean to toggle on and off (to prevent input No. 2 from passing through)
Input 2) The thing that you want to prevent passing through, which prevents a function from beginning (i.e. could be a code block, which is required to complete a function)
1No. Output
Output 1) This will output whatever is connected to input No. 2, if the boolean is toggled to true

See this topic: How to change workflow path or stop it

1 Like