Difference between revisions of "Core.Terms.LogicAnd"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
LogicAnd operator is used according to the C# notation for logical operation in the formulation of conditions etc. The following operator can be used: '''&&''' | LogicAnd operator is used according to the C# notation for logical operation in the formulation of conditions etc. The following operator can be used: '''&&''' | ||
− | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | The returned Boolean value of the conjunction of the BooleanTerm operands }} |
== Properties == | == Properties == | ||
Line 27: | Line 27: | ||
Boolean result; | Boolean result; | ||
− | result = MyValueOfBool1 && MyValueOfBool2 && MyValueOfBool3 | + | result = MyValueOfBool1 && true && MyValueOfBool2 && MyValueOfBool3; |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:25, 21 June 2019
Contents
Classification
Name | LogicAnd |
Short Description | Represents the Boolean conjunction |
Class | Term |
Extension | OTX Core library |
Group | Operations |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanVariable = BooleanTerm1 && BooleanTerm2;
Description
LogicAnd operator is used according to the C# notation for logical operation in the formulation of conditions etc. 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 conjunction of the BooleanTerm operands |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Terms | Boolean | Term | - | [2..*] | Represents the list of BooleanTerm operands of the conjunction. Terms shall be evaluated in the order of appearance in the OTX document. |
OTL Examples
Boolean MyValueOfBool1 = true;
Boolean MyValueOfBool2 = false;
Boolean MyValueOfBool3 = true;
Boolean result;
result = MyValueOfBool1 && true && MyValueOfBool2 && MyValueOfBool3;