XenoGuard Documentation

Add

Actions » Programming » List » Add 

The action Add assigns a value to the list and stores the list value in Added of the result list. This action is able to accept null values and duplicate entries.

[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. In the List node, select the Add action.

Parameters:

The action has the following input parameters:


name Description
List The name of the list where the value is to be stored.

Allowed Context Scopes [Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Value
The value to be added to the list.

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

Results:

The action returns the following results:


name
description
Added Contains the added value to the list.

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

Example 1 (Adds values to a created list):

This example adds a list of values to the created local Meals list. The result of the values in Added is then output via Write Text.

See other list operations:

Create
Set At Index
Get
Contains
Count
Iterate
Remove
Remove At
Remove Match
Clear