How to select the specific points by comparing the distance

Hi, I am confused with the result of “dispatch”
I want to select data whose shortest distance from the point to the line is less than 2300, but it seems to fail. Does anyone know the reason?

Thank you so much

Hi,

I think it is not working because before connecting the distances to Dispatch, you are sorting the distances. To make it work I would do it like this.

And if you want to sort the points first by their distance to the curve and then classify them with Dispatch considering if they are larger than a certain amount (2300 in your case), do it like this.

Select points.gh (10.1 KB)

I hope this helps!