Identifier Parameter
ActionStep Reference » Programming » Identifier » Identifier Parameter
The ActionStep 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.
Parameters are best used in child ActionScripts that are called by the master ActionScript. |
- Open the Programming node in the Workspace Explorer.
- Open the Identifier node, select the Parameter ActionStep.
Parameters:
The ActionStep 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 ActionScript, numValue 1 and numValue 2 with Unsigned Number as their data type. The Result after the child script is called by the master ActionScript is then output via Message Box.
This is the child ActionScript that will be called by the master ActionScript:
This is the master ActionScript: