Map With Entry | MAP_SET

Syntax

MAP_SET( [value], [key], [entryValue] )

Parameters

value
A MAP / OBJECT.

key
A TEXT. The key of the value to set in the VALUE.

entryValue
The value to set.

Return Value

An updated MAP / OBJECT with ENTRY VALUE set at the KEY

Description

Set a value in a MAP / OBJECT by key.

Examples

# VALUE is ["a" => 1, "b" => 2]
MAP_SET(VALUE, "a", 3) # returns ["a" => 3, "b" => 2]
# VALUE is ["a" => 1, "b" => 2]
MAP_SET(VALUE, "c", 3) # returns ["a" => 1, "b" => 2, "c" => 3]