[SOLVED by RobinB]How to check if an object is not itself?

Someone has already posted: