handling constraints and operators with two, multiple or no values