AssertNot¶
Fails the record when the input matches a value or one entry of an array of values.
Takes either a single parameter that the input must not match or an array of parameters. If the input equals any of the supplied values the rule fails and the record is dropped. An optional comment is written to the log when the assertion does not match.
Parameters¶
- 1 —
forbiddenOptional — accepts: BOOLEAN, DATE, FLOAT, INT, STRING, NULL, array -
A value,
NULL, or an array of values that the input must not equal. Defaults toNULL. - 2 —
commentOptional — accepts: STRING -
A comment written to the log when the assertion does not match.
Input type¶
BOOLEANDATEFLOATINTSTRING
Output type¶
same-as-input
Examples¶
Reject a single value
Reject NULL with a comment
Reject any of an array of values