I just posted something about this today, basically I create a gate and send the list through based on the true/false toggle.
Could als be used with multiple Boolean and logic gates.
Hi there. I guess you are looking for something which allows you to set options for what parts of the script will run, and those which will not. (If you can speak grasshopper, the “dispatch” component?)
Maybe this?
[image]
The Inputs for “a” in the code block and List.Take Items are the same list.
Just add another if result mode and swap out the true false inputs.
Here is how I have solved it; uses the Steam Tool.RunMe node.
Thank you, that works perfectly. The original 2 code blocks I switched for a simple boolean, then I renamed it so that the user is aware of what it triggers, it works perfect and your solution provides a clean and simple interface for the user at the Dynamo Player. Kudos to you and thanks again
1 Like
S1arhei
October 11, 2022, 5:26pm
24
Danbash, thank you for this idea.
However, I have no clue why it does not work for me - I saved the script, re-open etc.
Basic workflow task: I want to hide selected elements, when the toggle is “true”, and unhide all selected elements - when it is “false”.
Thanks