Difference between revisions of "Extensions.Util.Compare"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | BooleanTerm | + | BooleanTerm Util.Compare({Term[ ] term}); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 11: | Line 11: | ||
The OTX '''Compare''' term checks the content and not the reference of ByteField, List and Map. List and Map are checked recursively. For all other data type comparisons, the same behavior as used by the '''otx:IsEqual''' term is used, unless specified otherwise at the definition of the data type. In case of structure the '''util:Compare''' term checks all values deeply. | The OTX '''Compare''' term checks the content and not the reference of ByteField, List and Map. List and Map are checked recursively. For all other data type comparisons, the same behavior as used by the '''otx:IsEqual''' term is used, unless specified otherwise at the definition of the data type. In case of structure the '''util:Compare''' term checks all values deeply. | ||
− | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | The | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | The result of the comparision.}} |
== Properties == | == Properties == | ||
Line 21: | Line 21: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
Boolean Boolean1 = false; | Boolean Boolean1 = false; | ||
Latest revision as of 02:30, 8 November 2018
Contents
Classification
Name | Compare |
Short Description | Tests for equality of two or more Terms |
Class | Term |
Extension | OTX Util extension |
Group | Util related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm Util.Compare({Term[ ] term});
Description
The OTX Compare term checks the content and not the reference of ByteField, List and Map. List and Map are checked recursively. For all other data type comparisons, the same behavior as used by the otx:IsEqual term is used, unless specified otherwise at the definition of the data type. In case of structure the util:Compare term checks all values deeply.
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 result of the comparision. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Term | - | Term | - | [2..*] | Represents a otx:Term which shall be compared. |
OTL Examples
/// Local Declarations
Boolean Boolean1 = false;
/// Flow
Boolean1 = Util.Compare({{&11, &22, &33}, {&10, &22, &33}});
See also
CopyByteField
GetRandomNumber
IsInitialized
ListIndexOf
ListIndexOfAny
ListReverse
ListSort
Max
Min
StringFormat