skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Not
 

Try Corticon Now

Not

SYNTAX

not <Expression>

DESCRIPTION

Returns the negation of the truth value of <Expression>.

USAGE RESTRICTIONS

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.

RULESHEET EXAMPLE

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).

SAMPLE RULETEST

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.
Although 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:
Table 21. Valid usage
Condition
Cell value
foo.color
not 'red'
foo.color
<> 'red'
foo.color
<> bar.color
Table 22. Invalid usage
Condition
Cell value
foo.color
not bar.color