XenoGuard Documentation

Result

Actions » Programming » Identifier » Result

The action Define Result specifies the name and data type of a result within the action script in a Local Context. The chosen name for the Result parameter must be unique. It can consist of any character (numbers, letters, and special characters) and may also contain spaces that increase its readability. In contrast to Write Result, the name of the Result parameter is generated as an Action Script Result during runtime.

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

Parameters:

The action has the following input parameters:


name Description
Name
The name of the Result.
Data Type
The data type of the Result.

Allowed Context Scopes [Fixed]
Possible Values [Text, Number, Unsigned Number, Floating Point, Boolean, Image]
Value
The initial value of the Result.

Allowed Context Scope [Fixed, Local, Global]

Results:

The action returns the following results:


name
description
Result The value of the Result.

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

Example 1 (Set the calculated BMI as the Result):

This example creates two local variables, Height and Weight with Floating Point as their data type. The values are then used to calculate the BMI and set as value of the Result identifier. The output is then displayed in Write Text.


See other identifier operations:

Variable
Parameter
Result
Enum
Set Identifier