if you set it to 0 before you do the for each condition each time it will be 0 if its not there, and 1 if it is,
regardless of what the condition was in the last tick
also, for what you described, the "is overlapping at offset" condition might be more appropriate
and would be much simpler, though you'll have to use the family trick
for instance
box is overlapping "boxfamily" at offset x=0,y=-5
make box immovable
you have to do this with a family,
as in : Box is overlapping Box
it will think you want both boxes to be immovable
so by separating the condition with a family, it understands the boxes you are overlapping
are not meant to be picked for the actions
example:
drag and drop boxes
http://dl.getdropbox.com/u/1013446/boxthing.cap