Difference between revisions of "Core.Actions.Assignment"
Jump to navigation
Jump to search
m (Kl moved page Assignment to Core.Actions.Assignment) |
|||
Line 5: | Line 5: | ||
== Description == | == Description == | ||
An expression or value can be assigned to a variable with the OTX '''Assignment''' activity. The basis for the representation of complex terms in the designer, see [[ActivitysAndTerms|activities]] is the assignment ''ActionNode''. | An expression or value can be assigned to a variable with the OTX '''Assignment''' activity. The basis for the representation of complex terms in the designer, see [[ActivitysAndTerms|activities]] is the assignment ''ActionNode''. | ||
+ | |||
+ | == OTL Syntax == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | Variable = Term; | ||
+ | </syntaxhighlight> | ||
== Properties == | == Properties == | ||
Line 13: | Line 18: | ||
|} | |} | ||
+ | == OTL Samples == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | Integer Variable1; | ||
+ | String Variable2; | ||
+ | Float Variable3; | ||
+ | |||
+ | Variable1 = 123; | ||
+ | Variable2 = "Hello"; | ||
+ | Variable3 = 0.123; | ||
+ | </syntaxhighlight> | ||
== See also == | == See also == | ||
[[ProcedureCall]] <br/> | [[ProcedureCall]] <br/> |
Revision as of 02:46, 2 February 2015
Classification
Name | Assignment |
Short Description | Assigning an expression to a variable |
Class | Action |
Extension | OTX Core library |
Group | Core related actions |
Exceptions | - |
Checker Rules | Core_Chk023 |
Standard Compliant | Yes |
Description
An expression or value can be assigned to a variable with the OTX Assignment activity. The basis for the representation of complex terms in the designer, see activities is the assignment ActionNode.
OTL Syntax
Variable = Term;
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Result | - | Variable | - | [1] | Variable is assigned the value of the term. |
Term | - | Term | - | [1] | Expression is calculated, and the result of which is assigned to the variable |
OTL Samples
Integer Variable1;
String Variable2;
Float Variable3;
Variable1 = 123;
Variable2 = "Hello";
Variable3 = 0.123;
See also
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapUnion
MapPutItems
MapRemoveItems
MapClear