Dividing Dynamo Code Parts for Multiple Options

Hello Everyone,

I am wondering if it is possible to divide a dynamo code to run certain parts of the dynamo code. For example, if the user selects Option A then dynamo runs the nodes that belong to Option A a routine. If the user selects Option B, then dynamo runs the nodes that belong to Option B a routine.

… something like that.
I appreciate any pointers.
Thanks

I usually do this by blocking one stream and passing the other using logic gates, see below:

2 Likes

Sometimes I use this really basic definition, which works nicely in Dynamo Player with User Input. You can replace the “True/False” with Text, Number, Dropdown or anything that suits you.

User Input Options

2 Likes

Thank you @GavinCrump and @se.ha for sharing this. It is great help. :pray:
Both are great solutions.

2 Likes