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 parameter | Assignment | Value format | Input options |
---|---|---|---|
Map name | Required | String | Local, variable |
Key | Required | String | Local, variable |
Item value | Required | String | Local, 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