Data tree. Multiple value stream

Hello, community,

I wonder is there a way to define an expression inside value list?

If yes, how to syntax a value that output all other values of a tree?

a = branch 1
b = branch 2
c = branch 3
d = a and b and c

Maybe there is other approach than value list?

You can use the Split Tree component like this, along with a Value List containing these options:

  • a = "{*;0}"
  • b = "{*;1}"
  • c = "{*;2}"
  • d = "{*;(0 to 2)}"

Each pattern allows you to filter specific branches from the data tree.
Untitled-1
SplitTree.gh (3.5 KB)

3 Likes

Thank you so much!

Lastly, what is the keyword that summarize expression syntax (I hope a correct name)?

Does it relies on universal programming language fundamentals?

The syntax used in components like Split Tree is known as Path Matching Expressions. It’s similar to wildcard logic (*, ?, ranges), but not based on any standard programming language.

More details: datatree-selection-rules

2 Likes

thumbs up!