Difference between revisions of "Core.Terms.LogicOperations"
Jump to navigation
Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | LogicOperatios | Basic logical operations with Boolean expressions | Term | OTX Core library | [...") |
|||
Line 5: | Line 5: | ||
== Pseudo-Code Syntax == | == Pseudo-Code Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | BooleanValue = BooleanTerm1 | + | BooleanValue = BooleanTerm1 operator BooleanTerm2 |
BooleanValue = !BooleanTerm1 | BooleanValue = !BooleanTerm1 | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 08:50, 13 August 2014
Contents
Classification
Name | LogicOperatios |
Short Description | Basic logical operations with Boolean expressions |
Class | Term |
Extension | OTX Core library |
Group | Operations |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
BooleanValue = BooleanTerm1 operator BooleanTerm2
BooleanValue = !BooleanTerm1
Description
Logical operators are used according to the C# notation for logical operations in the formulation of conditions etc. The following operators can be used:
- &&
- Logical AND (conjunction)
- ||
- Logical OR (disjunction)
- ^
- Logical XOR (exclusive disjunction)
- !
- Logical emergency (negation)
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 | 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
* ! MyValueOfBool1