thank you both.
I've been fighting for hours to get a convincing result, and unsuccessfully of course...
I've put a value "cupboard" to 3.
1)for a area "cupboard close"
2)for the open (and empty) cupboard
3)for the box in it which must be taken by the character
There is no condition, since the two solutions can't be combined.
I'm trying several links but nothing works.
Actually, I'll need to pair 2 and 3. In order to get the open thing with the object in it.