XenoGuard 4.0 Documentation

Add

ActionStep Reference » Programming » List » Add 

The List Add ActionStep adds a value to a list and stores this value in the Added field of the result list. This ActionStep can accept both empty values and duplicate entries.

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

Parameters:

The ActionStep 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 ActionStep 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