Remove Map Entry Icon Remove Map Entry

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 Action

Arguments:

ArgumentDescription
MapThe index (stored in a variable) of the map to remove the value from
KeyThe key to use (real or string)

 

Example:

Remove Map Entry ExampleThe 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 then the key is removed from the map.