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:
- Setting the field to false in a rule condition. For example:
- Setting the field to false in a table rule. For example:
- Using negative phrasing of the field. For example:
Tip: The Not() function can also be used to negate another function. For example: