Component Function call

Table of Contents

Description

Passes control to a detached branch in the current script, starting with the component Label. A specific component is selected based on the dynamic matching of the `Label` property value of it and the current component. The property can be specified by a constant and an argument. Assumes that control is returned to the call point. For this purpose, the script interpreter saves the call information to a stack and uses it when the component Return of control. The return is always made to the last call point in the stack, so for the correct operation of the script it is necessary to ensure the correspondence of call points and control returns.

This allows you to break the script into regions with simple algorithms and eliminates the need to copy groups of components, call nested scripts, and stretch long branches of transitions.

For parameterization, an arbitrary variable can be set directly in the component. The value assigned is argument. The type conversion mechanism is used if the types of the argument value and the variable value do not coincide. Allows assigning values to multiple variables.

Table 1. System Characteristics

Index

152

Short title

gofun

Types of scenarios

All of them

Starter module

era_script_component_gofun

Mode

Synchronous

Icon

152

Branching pattern

Non-branching

Properties

Table 2. Properties
Specification Description

Title: Mode
Code: mode
Visibility: no
Default: Single

Component operation mode by number of simultaneous assignment operations
Possible values:

  • Single (single,0)

  • Multiple (multi,1)

Title: Variable
Code: variable
Visibility: yes
Default: — 

Variable - assignment for single assignment.

Title: Value
Code: value
Visibility: yes
Default: — 

An argument supplying a value for a single assignment.

Title: Operations
Code: operations
Visibility: yes
Default: — 

A list of sequential assignment operations where each variable is assigned a separate argument.
The same variable can be assigned a value multiple times.

Title: Transition
Code: transfer
Visibility: no
Default: — 

Component to which control is passed.

See also