Classification
Name |
IsNotEqual
|
Short Description |
Tests for inequality of two or more operands
|
Class |
Term
|
Extension |
OTX Core library
|
Group |
Operations
|
Exceptions |
-
|
Checker Rules |
-
|
Standard Compliant |
Yes
|
OTL Syntax
BooleanValue = Term1 != Term2;
Description
IsNotEqual is a BooleanTerm which tests for inequality of two or more operands. For SimpleTerm arguments, true will be returned if and only if not all of the values of the terms are equal. For terms returning a reference, true is returned if and only if not all of the references returned by the terms are equal. The following operator can be used: !=
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
Boolean |
The returned Boolean value of the test for the inequality of two or more operands.
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Terms |
OTX Term |
Term |
- |
[2..*] |
Represents the operands which will be tested for inequality. Terms will be evaluated in the order of appearance in the OTX document.
|
OTL Examples
Integer MyValue1 = 12;
Float MyValue2 = 12.0000001;
String MyValue3 = "abcd";
Boolean result;
result = MyValue1 != MyValue2;
result = MyValue3 != "abc";
See also
IsEqual
IsLess
IsLessOrEqual
IsGreater
IsGreaterOrEqual