Filter index from a list between two values

Hello together, I have a list of 245 points (red dots) and a list of 16 points (green dots) and I want to filter the indices that lie between the green points (in the blue borderings

) from the list of 245 points. The points are sorted by their Y coordinate. With the command “MemberIndex” this would have to work but I don’t know how to do this for this case. Can someone help me?

Here is the part of the GH_File (35.6 KB)

3. Attach minimal versions of all the relevant files

The curve segments are already in sequential order so I see no reason to sort them (using MIndex). I simplified to this: (33.0 KB)

If instead you want the points between the ‘Pt_pairs’, instead of skipping them, just invert the ‘P’ input to Cull (Cull Pattern).

P.S. If you want to cull the curve segments instead of their midpoints just connect the Crv param to the ‘L’ input of Cull instead of the midpoints.

Thank you, it worked very well! :slightly_smiling_face: