Why == works in an if statement?

Abhic & marco_c - thanks for all of your helpful replies. Everything is clearly understood now.

Don