Blender, Geometry Node, Procedural, Game Art, Art Style.
part of the same sub segment. To the rescue comes the Spline Length node. Its Point count will tell you how many control points exist in that sub segment. So if you are on Control Point 4, and you try to read the position of Control Point 5, the point count can inform you that there are only 4