case to if