Line Command not working properly in GH

I am trying to draw a line between 2 points in GH but instead of drawing straight lines, it is creating all sorts of combinations. Can someone help please?
I am attaching the screenshot of the same!

It seems data mismatching is going on here.
For example, Point list A is flattened and Point list B is grafted…
It would be better to post your working definition with referenced geometries internalised, not just a screenshot.

It’s solved I just had to flatten the inputs of Endpoint and start point.
Thank you so much HS-Kim. :slight_smile: