I am creating a Mesh Line, and calculate the distance between point x and point x-1 to store it as a named attribute. Based on that distance I want to calculate the length of the line at that point. In the first screenshot I calculated and added the length attribute by hand.
The only solution I found to calculate the length is by using a Repeat Zone, but iterating over the 10 points seems to be a little laborious to me.
Is there a better way to archive what I want? Thank you in advance!