XenoGuard Documentation

Set At Index

Actions » Programming » List » Set At Index 

The action Set At Index updates a value in the list based on the specified list index.


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

Parameters:

The action has the following input parameters:


name Description
List The name of the list where the index is to be set.

Allowed Context Scopes [Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Index
The specified index of the list.

Allowed Context Scopes
[Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Value
The value to be set of the specified list index.

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

Results:

The action returns the following results:


name
description
Value Contains the value that was set for a specified list.

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

Example 1 (Plays an updated music playlist):

This example creates a local list named Audio Playlist and the value of the 3rd index in the list is then updated. The iterated list is then used to create the path for each audio file. The audio files are then accessed and played in Audio File.

See other list operations:

Create
Add
Get
Contains
Count
Iterate
Remove
Remove At
Remove Match
Clear