Select all DataTree branches by first path number


Is there a way to select all DataTree branches in C# by first path number in the same way as split mask component?

For instance, below I type number one and it selects two branches that begin with number one.
I am searching for equivalent methond in C#. (15.5 KB)

Hi Petras,

have a look at this discussion:

It is different question.
Is it possible to select branches without looping?

Just like you would do for arrays.
I.e int array;

And then take elements by id array[1]