If else condition passing