XenoGuard 4.0 Documentation
Iterate
ActionStep Reference » Programming » Dictionary » Iterate
The Dictionary Iterate ActionStep iterates through the key-value pairs of a created dictionary, storing the total number of items in ItemCount and the individual key-value pairs in Items within the result list.
[-] Hide
- Open the Programming node in the Workspace Explorer.
- In the Dictionary node, select the Iterate ActionStep.
Parameters:
The ActionStep 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 ActionStep 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:
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.