Skip to main content
Version: 15

MAP_SET

Sets a key-value pair in a map.

Description​

Sets a key-value pair in a map. If the map was not defined previously, then this command will create the map, then store the key-value pair within it.

Syntax​

MAP_SET [Map name] [Key] [Key value]

Command parameters​

Command parameterAssignmentValue formatInput options
Map nameRequiredStringLocal, variable
KeyRequiredStringLocal, variable
Item valueRequiredStringLocal, variable

Map name:​

Name of the map.

Key:​

The string acting as the key.

Key value:​

The value paired to the key.

Sample code​

MAP_SET Map1 Key1 123