XenoGuard Documentation

Iterate

Actions » Programming » Dictionary » Iterate 

The action Iterate goes through the key-value pairs of the created dictionary and stores the number of items in ItemCount and the key-value pairs in Items of the result list.

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

Parameters:

The action has the following input parameters


name Description
Dictionary The name of the dictionary where the key-value pairs are to be iterated.

Allowed Context Scopes [Local, Global]

Results:

The action returns the following results:


name
description
Item Count Contains the number of entries in the dictionary.

Allowed Context Scopes [Fixed]
Items Contains the iterated key-value pairs in the dictionary.

Parameters for the "Item" sub-branch:

  • Key - the item key
  • Item Value - the value of the item
Allowed Context Scopes [Fixed]
Allowed Context Types [Result]

Example 1 (Shows the iterated values of a dictionary):

This example displays the key of the created local DNS Names dictionary. The result of the iterated Key in the key-value pairs is passed to Items and is then output via Write Text.

See other dictionary operations:

Create
Add
Get
Get At
Count
Contains
Remove
Remove At
Clear