Switched if statements