Core.Terms.RelationalOperations

From emotive
Revision as of 08:58, 13 August 2014 by Nb (talk | contribs) (Created page with "Category:Core == Classification == {{ClassificationActivity | ComparativeOperations | Basic logical operators for comparisons | Term | OTX Core library | Op...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Classification

Name ComparativeOperations
Short Description Basic logical operators for comparisons
Class Term
Extension OTX Core library
Group Operations
Exceptions -
Checker Rules -
Standard Compliant Yes

Pseudo-Code Syntax

BooleanValue = BooleanTerm1 operator BooleanTerm2

Description

Logical comparisons are used according to the C# notation for logical operations in the formulation of conditions etc. The following operators can be used:

  • ==
    Equality, the expression evaluates to true , if both operands are equal.
  • !=
    Inequality, the expression evaluates to true , if both operands are not equal.
  • >
    Greater, the expression evaluates to true , if the left operand is greater than the right.
  • >=
    Greater than or equal, the expression is true if the left operand is greater than or equal to the right.
  • <
    Leaster, the expression evaluates to true , if the left operand is less than the right.
  • <=
    Less equal, the expression is true if the left operand is less than or equal to the right.

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 Return value from the logical operation

Properties

Name Data Type Class Default Cardinality Description
BooleanTerm1 Boolean Term - [1] Left operand
BooleanTerm2 Boolean Term - [1] Right operand

Examples

* MyValueOfBool1! = MyValueOfBool2
* MyValueOfBool1 == MyValueOfBool2
* MyValueOfBool1 > = MyValueOfBool2

See also

LogicOperations
MathematicalOperations