If condition in C++