XenoGuard Documentation

Parameter

Actions » Programming » Identifier » Parameter

The action Define Parameter creates a new parameter. The chosen parameter name must be unique and it can consist of any character (numbers, letters and special characters). It may also contain spaces that increase its readability. Parameters are defined in the Local Context, so they are valid only within the ActionScript. 

Information Parameters are best used in child action scripts that are called by the master action script.
[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Identifier node, select the Parameter action.

Parameters:

The action has the following input parameters:


name Description
Name
The parameter name.
Read Only
Specifies whether the parameter can be changed or not.
Data Type
The data type of the parameter.

Allowed Context Scope [Fixed]
Possible data types [Text, Number, Unsigned Number, Floating Point, Boolean, Image]
Value The initial value of the parameter.

Example 1 (Display the product from a child script):

This example creates two parameters in a child action script, numValue 1 and numValue 2 with Unsigned Number as their data type. The Result after the child script is called by the master action script is then output via Message Box.

This is the child action script that will be called by the master action script:

This is the master action script:

See other identifier operations:

Variable
Parameter
Result
Enum
Set Identifier