[quote:2uvyqft1]In the file, I provided previously when I am setting the layout where both the targets are overlapping each other then the drop function does not work. When both are placed separate then the drop works perfectly.
Ok I think I get what you mean now
So you are saying when both Targets are together and you Drag&drop an object on the targets it doesn't work right?
That's because they are two states that are true at the same Time and therefore both of them they will fire at the same time as the object overlaps two Targets at the same time
Object overlaps >>> Target >>> yes is true and picks Both Targets
> object.id = Target.id >>>> is True >>>set position
Else>>>>>>>>>>>>>>>>>> is True >>>Back to the starting Position
The problem is here (object.id = Target.id) is not the same as (Target.id = object.id) even if they are technically the same just inverted but the results will be different, one just compares and the other one Picks
Capx:
https://www.dropbox.com/s/3oe5og12khuk14l/DragMatchObjects2.capx?dl=0