Remember C++ is a case-sensitive language. If and if are two completely different things.