List modify? match? i want to create zigzag line

As in the picture above, I want to connect lines (red lines) in a zigzag using each list information (point). In my opinion, in the process of merging lists, some code blocks or the utilization of list editing nodes should be preceded… If you have any information related to this, please share. I think it will be really helpful.

You can do this:

Example.dyn (20.9 KB)

1 Like

Another approach, I am sure there is one with lesser nodes than mine :slight_smile: :

1 Like


:smiley:

3 Likes

Thank you so much for replying so kindly. The information you shared will be put to good use.

Thank you so much for replying so kindly. The information you shared will be put to good use.!!

1 Like

Thank you so much for replying so kindly. The information you shared will be put to good use.!!!

Another option
zigzag

x = 0..10;
PolyCurve.ByPoints(Point.ByCoordinates(x,x%2),false);
2 Likes