Component Function Call
:icons:font :hardbreaks: :imagesdir: ../../../assets/images :toc-title: Contents :toc:
Description
Transfers control to a detached branch in the current script, starting with component Label. A specific component is selected based on the dynamic match between the Label property values of it and the current component. The property can be specified by a constant and an argument. Involves returning control to the call point. For this purpose, the script interpreter stores information about the call on the stack and uses it when running the component Return of control. Returns are always made to the outermost call point on the stack, so for the script to work correctly it is necessary to ensure that call points and control returns match.
This allows you to split the script into regions with simple algorithms and eliminates the need to copy groups of components, call nested scripts, and stretch long transition branches.
For parameterization, the value of an arbitrary variable can be set directly in the component. The assigned value is argument. A type conversion mechanism is used if the types of the argument value and the variable do not match. Allows assignment of values to multiple variables.
Index |
|
Short name |
|
Script types |
|
Start module |
|
Mode |
Synchronous |
Icon |
|
Branching type |
Non-branching |
Properties
| Specification | Description |
|---|---|
Name: Label Code: Visibility condition: no Default: — |
Argument based on the value of which the label (component with the same value) is searched. |
Name: Variable Code: Visibility condition: yes Default: — |
Variable - destination for assignment operation. |
Name: Meaning Code: Visibility condition: yes Default: — |
Argument supplying the value for the assignment operation. |
Name: Transition
Code: Default: — |
The component to which control will be transferred after control returns from the function. |
See also
-
Role svc
-
Go to label (transfer of control without returning to the call point)