Loop in VFX Graph; using mutiple position binder

Hi!
I was wondering if there are any metods of looping through a Texture2D sample from the multiple position binder to find the nearest position.

Additionally i’d love to hear if it is even appropriate to use the VFX graph to calculate what object is the nearest.

Just for clarity, the position is used in the same VFX graph to position an electrical arc.
These positions are send to the vfx graph via the multiple position binder. I want to find the nearest one. (And hope to learn how to use the VFX graph because it’s awesome)

7014130--829876--arcToPoint2.gif

Hello, the workflow would rather be to pass the nearest position to VFX Graph and compute it from outside.

Alright thanks, another question how would i go about populating the position then?
If i wanted to use the multiple position binder how would i go about changing adding and removing targets via code?
The documentation only have explanations of how to make custom property binders, not populating premade ones or am I missing something?