Create list depending upon difference Z value

Hi all,
Currently I faced a problem in my current dynamo script ( see the below attached snip).

From Geometry.Translate line start and end point Z value are same and I got a single list, but I want in a group of different list depending on Z value (every time Z value is difference its create a difference group of list)
I want list as below as per (Geometry.Transalate) output data.
list 0
0 point (x = 93751.683)
1 point (x = 97631.683)
list 1
0 point ( x =101401.683)

GroupByKey is the node you’re after.

Your Z values are all different though so you’re going to get groups of 1, not as you describe. Are you actually trying to group by thousands? e.g. 90000 to 99999 is in one group, 100000 to 109999 is in another sort of thing? In that case you just need to manipulate the required characters from the Z point to use as keys.

here some solutions


Thank you so much @c.poupin :slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face: