Use switch statements instead of if statements.