if condition is also checked