If else testing without and operator