the two Ifs can be combined with OR.