How to Compare Nested Lists (Matching Locations)

I have two lists, one has every isolated foundation element and location in Revit (right side). The other has the id numbers and locations read from an excel file. I would like to assign the id number to a comment where the two list share a common (or close) location. Can someone help with the logic of doing a the nested comparison here?

thanks much

This is a fun little exercise every time it comes up.

Get just the point values by transposing and getting the last item in the list, convert both lists of points to strings (incase one is and one isn’t), and compare the two strings with cross product. Then use a list.indexof node to find every index for “true”, and then use a list.getitematindex node to get the items from the list.

Give it a shot and post back if you get stuck.