Skip to main content
Version: 2.13

Add Element To Map

Adds an element to the map data structure.

Description​

Adds an element to the map data structure. If that data structure doesn't exist, creates it and returns it afterward (otherwise returns the existing data structure)

Inputs​

  • Control Flow (Control Flow)
  • map (Map): The map data structure to add an element to. If left empty, it will create a new map
  • value (Object): The value of the element
  • key (String): The key of the element

Outputs​

  • Control Flow (Control Flow)
  • map (Map): The updated map with the new element