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.

Table 1. System characteristics

Index

152

Short name

gofun

Script types

All

Start module

era_script_component_gofun

Mode

Synchronous

Icon

152

Branching type

Non-branching

Properties

Table 2. Properties
Specification Description

Name: Label

Code: label

Visibility condition: no

Default: — 

Argument based on the value of which the label (component with the same value) is searched.

Name: Variable

Code: variable

Visibility condition: yes Default: — 

Variable - destination for assignment operation.

Name: Meaning

Code: value

Visibility condition: yes

Default: — 

Argument supplying the value for the assignment operation.

Name: Transition Code: transfer Visibility condition: no

Default: — 

The component to which control will be transferred after control returns from the function.

See also