Difference between revisions of "Core.Terms.IsNotEqual"

From emotive
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:OTX '''RelationalOperations'''}}Category:Core Please see RelationalOperations.")
 
 
Line 1: Line 1:
{{DISPLAYTITLE:OTX '''RelationalOperations'''}}[[Category:Core]]
+
{{DISPLAYTITLE:OTX '''IsNotEqual'''}}[[Category:Core]]
Please see [[Core.Terms.RelationalOperations|RelationalOperations]].
+
== Classification ==
 +
{{ClassificationActivity | IsNotEqual | Tests for inequality of two or more operands | [[Term]] | [[Core|OTX Core library]] | [[Operations]] | - | - }}
 +
 
 +
== OTL Syntax ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
BooleanValue = Term1 != Term2;
 +
</syntaxhighlight>
 +
 
 +
== 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: '''!='''
 +
 
 +
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | The returned Boolean value of the test for the inequality of two or more operands.}}
 +
 
 +
== Properties ==
 +
 
 +
{| {{TableHeader}}
 +
{{TableRowPropertiesHeader}}
 +
{{TableRowPropertie2| Terms | [[Core.DataTypes|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 ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
Integer MyValue1 = 12;
 +
Float MyValue2 = 12.0000001;
 +
String MyValue3 = "abcd";
 +
Boolean result;
 +
 
 +
result = MyValue1 != MyValue2;
 +
result = MyValue3 != "abc";
 +
</syntaxhighlight>
 +
 
 +
== See also ==
 +
[[Core.Terms.IsEqual|IsEqual]] <br/>
 +
[[Core.Terms.IsLess|IsLess]] <br/>
 +
[[Core.Terms.IsLessOrEqual|IsLessOrEqual]] <br/>
 +
[[Core.Terms.IsGreater|IsGreater]] <br/>
 +
[[Core.Terms.IsGreaterOrEqual|IsGreaterOrEqual]]

Latest revision as of 04:33, 24 June 2019

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.

Icons Note.png 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