Distance points from points

Hello,

I have points in two groups which I have attached into two different multiple point component.
I would like to dispatch only points from component 2 which are of a certain distance, for example 20, further from points in component 1.
I have started this script but for some reason the points do not want to dispatch.

Cheers! Step 4 distance from points.gh (7.7 KB)

I guess you are looking for Closest Point:


Agata.gh (15.2 KB)

thank you!