Remove Map Entry


Description

With this action you can remove a key (and its corresponding value) from a map data structure. You supply the variable that holds the map index (as returned by the action Create Map) and then give a "key" (which is the identifier within the map for a value), and the action will remove that key from the map. Note that this action does not return anything, and if you need the value for the given key you should use the Get Map Value action before removing it.


Action Syntax:

Remove Map Entry Syntax


Arguments:

Argument Description
Map The index (stored in a variable) of the map to remove the value from
Key The key to use (real or string)


Example:

Remove Map Entry Example
The above action block code retrieves the value of a specific key from the map data structure and then checks the value to see if it is less than or equal to 0. If it is the key is removed from the map.