User select which part of the graph is executed


I have almost 2 identical “scripts” in one dynamo graph, 1 to set pile numbers in vertical order and one in horizontal order. Is it possible to let the user select which one (horizontal or vertical) would be executed and freeze or not run the other one.
Now i let the user set in dynamo player the category to a non existing one so this “script” could not run.

thanks Edwin

Set up a boolean toggle (or a better UI with Data-shapes) that runs one part of a graph or another depending on the selection. It could even run the same graph with different data. It all depends on how your graph is set up.