Index value if items at list are equal

Hi,

I have 2 “streams” of nodes 1 select the position of an element on the level below (A) and 1 select the position on the current level (B)
I select the unique coordinates from A and B.

Now i want to get the corresponding string length by these coordinates i tried GroupByKey but the keys are unique.


How do i link the coordinates with the string length.

If i change in GroupByKey the inputs The Uniquekey is solved (coordinates are unique) but i still want the corresponding values

Bit further but still stuck.

How to compare the 2 list, if they are equal then i want to get the biggest value of the “sub list”.
If you follow the red lines there are 2 positions of coordinate (index 0 and 3) that match and then i want the biggest value of the “sub list” (index 0 and 3) in this case it would be 7

If i complete this the values i want are 7, 11, 7, 6

There are max 2 coordinates the same (red and blue line) or it is a unique coordinate (green and black line).

hope you can help.

solved

Trick is List.AllIndicesOf node.

1 Like