Use switch statement.