Classification
Name |
IsEqual
|
Short Description |
Tests for equality 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
IsEqual is a BooleanTerm which tests for equality of two or more operands. For SimpleTerm arguments, true will be returned if and only if the values of all terms are equal. For terms returning a reference value (e.g. a reference to a List or Map), true will be returned if and only if the references returned by all 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 equality 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 equality. Terms will be evaluated in the order of appearance in the OTX document.
|
OTL Examples
Integer MyValue1 = 12;
Float MyValue2 = 12.0;
String MyValue3 = "abcd";
Boolean result;
result = MyValue1 == MyValue2;
result = MyValue3 == "abc";
See also
IsNotEqual
IsLess
IsLessOrEqual
IsGreater
IsGreaterOrEqual