XenoGuard Documentation

Set Identifier

Actions » Programming » Identifier » Set Identifier

The action Set Identifier sets the value of a targeted variable or a parameter in the ActionScript. The value to be assigned to a variable should be of the same data type or format.


[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Identifier node, select the Set Identifier action.

Parameters:

The action has the following input parameters:

name Description
Target
The target as context identifier.

Allowed Context Scopes
 [Local, Global]
Source
The value to be set for the identifier.

Allowed Context Scopes [Fixed, Local, Global]

Results:

The action returns the following results:

name
description
Value The set value of the identifier.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Example 1 (Display warning message on stock count):

This example creates two local variables, Stock Level and Message with Text as data type and a parameter, Stock Count with Number as data type. If the value of Stock Count is less than or equal to 10, the Source of the set identifiers in the "Then" branch are passed as values of the variables. The variable values are then displayed in Message Box.

See other identifier operations:

Variable
Parameter
Result
Enum