Use switch statement instead of if/else.