Write Rules In the Negative

When writing rules in a decision service or flow project, it is important to know that a Boolean field does not recognize its negation. That is, "the person is eligible" and "the person is not eligible" are considered separate fields.

Negation of a Boolean field can be achieved using any of these techniques in rules:

  • Using the Not() function with the field in a rule condition. For example:

    A Hub rule showing the Not function used to negate a Boolean field
  • Setting the field to false in a rule condition. For example:

    A Hub rule showing equals false used to negate a Boolean field
  • Setting the field to false in a table rule. For example:

    A Hub rule showing a false value used to negate a Boolean field in a rule table
  • Using negative phrasing of the field. For example:

    A Hub rule showing a result using negative phrasing

Tip: The Not() function can also be used to negate another function. For example:

A Hub rule showing the Not function used with another function