XenoGuard 4.0 Documentation
Clear
ActionStep Reference » Programming » Dictionary » Clear
The Dictionary Clear ActionStep removes all key-value pairs from the dictionary.
[-] Hide
- Open the Programming node in the Workspace Explorer.
- In the Dictionary node, select the Clear ActionStep.
Parameters:
The ActionStep has the following input parameters:
NAME |
DESCRIPTION
|
---|---|
Dictionary |
The name of the dictionary where the key-value pair is to be emptied.
Allowed Context Scopes [Local, Global] |
Example 1 (Removes all key-value pairs of a dictionary):
This example deletes all values within the created local Reset Start dictionary. The Count ActionStep is then used to check the number of items found before and after deleting the key-value pairs in the dictionary. Then, the result in Count after deletion is then output via Write Text.
See other Dictionary operations:
Create
Add
Get
Get At
Count
Contains
Iterate
Remove
Remove At