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
 Describes the variable to which the resulting value of term evaluation will be assigned. More...
 
Term term
 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
 Validity of ActionRealisation. More...
 

Detailed Description

Assigns a value to a variable.

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

Syntax
Variable result = Term term;
Term term
Describes the value which shall be evaluated out of the given term at runtime.
Definition: Core.cs:6008
Variable result
Describes the variable to which the resulting value of term evaluation will be assigned.
Definition: Core.cs:5998
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

Describes the variable to which the resulting value of term evaluation will be assigned.

◆ term

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

Describes the value which shall be evaluated out of the given term at runtime.