OK, I admit at this point I am confused.
I have 2 instances of object A, and like 50 instances of object B.
If object A has variable set "active", I want it to check if its next to object B.
I did it your way now, like this:
Object B is checked (applies to all object B-s) if any object A is at given distance(s), if it is then apply animation to object B and change variable on object A.
In that, object A is only concluded in expression, does the order chain still apply in that case?