It is more efficient to use a switch than several if.