The operation of this simple .blend:
You Left click on the first object. You then right click on the second object and the first is moved to exact location and orientation of first object.
The problem is that an object defined in the first IF statement is not known in the second IF statement. So it does not work.
p.s. I tried to get it to work with left click only using states but have not had much luck.
mouse click rev 3.blend (196 KB)