Not
- Last Updated: March 24, 2022
- 2 minute read
- Corticon
- Version 6.3
- Documentation
SYNTAX
not <Expression>
Returns the negation of the truth value of <Expression>.
The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies, with the following special exception: not may also be used in Conditional Cells.
The following Rulesheet uses not to negate the
value of A in the Condition Cell of rule 2. Not may only be used in this manner if there is at least one
other value (including other or null)
present in the Condition Cells values drop-down list (in other words, there must be
at least one alternative to the value negated by not).
A sample Ruletest provides three examples of string1. Input and Output panels are shown below:
Limitations to using NOT in a Conditional cell
When you use not in a Conditional cell with
an attribute name, the form is not valueSet which evaluates as true when the condition is not a member of an entry in the valueSet. Such entries in the valueSet must be literals (or partial expressions containing only
literals); no variables or attributes may be included. Inclusion of an attribute
reference in the valueSet is not valid.
not attribute is unsupported, it is
not determined that it is invalid until it does not process. Then, it indicates that it
is invalid. Consider the following examples:
| Condition | Cell value |
|---|---|
foo.color
|
not 'red'
|
foo.color
|
<> 'red'
|
foo.color
|
<> bar.color
|
| Condition | Cell value |
|---|---|
foo.color
|
not bar.color
|