Another way would be with a switch() statement.