OTX Reference  
OpenTestSystem.Otx.Core.Actions.Assignment Class Reference

Assigns a value to a variable. More...

Inheritance diagram for OpenTestSystem.Otx.Core.Actions.Assignment:
Inheritance graph

Public Attributes

Variable result
 Cardinality [1]
Describes the variable to which the resulting value of term evaluation will be assigned. More...
 
Term term
 Cardinality [1]
Describes the value which shall be evaluated out of the given term at runtime. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Assigns a value to a variable.

The ActionRealisation assigns a right-value (Term) to a left-value (Result).

Syntax
Variable result = Term term;
Term term
Cardinality [1] Describes the value which shall be evaluated out of the given term at runtime.
Definition: Core.cs:6045
Variable result
Cardinality [1] Describes the variable to which the resulting value of term evaluation will be assign...
Definition: Core.cs:6035
Example
// Local Declarations
Integer Variable1;
String Variable2;
Float Variable3;
// Flow
Variable1 = 123;
Variable2 = "Hello";
Variable3 = 0.123;
Variable3 = Variable1;
Checker rules
CheckerRule.Core_Chk023 - Type-safe assignments

Member Data Documentation

◆ result

Variable OpenTestSystem.Otx.Core.Actions.Assignment.result

Cardinality [1]
Describes the variable to which the resulting value of term evaluation will be assigned.

◆ term

Term OpenTestSystem.Otx.Core.Actions.Assignment.term

Cardinality [1]
Describes the value which shall be evaluated out of the given term at runtime.