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

Try Corticon Now

Not equal to

SYNTAX

Boolean
<Expression1> <> <Expression2>
DateTime*
<DateTime1> <> <DateTime2>
Number
<Number1> <> <Number2>
String
<String1> <> <String2>

DESCRIPTION

Boolean
Returns a value of true if <Expression1> does not have the same truth value as <Expression2>.
DateTime*
Returns a value of true if <DateTime1> does not equal <DateTime2>. This is equivalent to <DateTime1> not occurring on <DateTime2>
Number
Returns a value of true if <Number1> is not equal to <Number2>. Different numeric data types may be compared in the same expression.
String
Returns a value of true if <String1> is not equal to <String2>. Studio uses Character precedence: Unicode and Java Collator to determine character precedence.
*includes DateTime, Date, and Time data types

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

The following Rulesheet uses not equal to to test whether decimal1 equals decimal2, and assign a value to string1 based on the result of the comparison.

SAMPLE RULETEST

A sample Ruletest provides two examples. Input and Output panels are shown below: