XenoGuard Documentation

Clear

Actions » Programming » Dictionary » Clear 

The action Clear removes all key-value pairs within the dictionary.


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

Parameters:

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