Search for parameter value and set other parameter by name

Hey Guys,

I have actually tried to find a solution over several hours now and have not found it. Maybe somebody can help.

What I want to do:
I have 2765 elements, and I have included a parameter numbering them from 0 to 2765.
element 1 with Parameter X =0
element 2 with Parameter X =1

element 2675 with Parameter X = 2764

There is another shared parameter in them Named Parameter Y.
Which I would like to feed to those elements in groups.

So lets say elements with parameter X values from 9-15 ( =7 elements) I would like to feed the value “green” to parameter Y. And parameters X values from 16-17 (= 2 elements) feed value “blue” to parameter Y

I have tried groupbyfunction or Filterbyboolmask, range … and I have found a solution for searching for strings …
And I am pretty sure it is simple, but I guess my brain is not working properly today …

I would really appreachiate help …


quick and dirty but should do the work for you

1 Like