convert if to case