add to map(key a, value b, name of map c, [skip empty d])
Group |
Adds value b with key a into the Named Map named c.
The return value is always b. If the map does not exist, then it is created. If the map name is not explicitly specified then the name default is used.
If the value to be added b has the Empty Flag set and parameter d has the value true, b will not be added to the map.
Description of Parameters
Parameter |
Description |
a |
Key value. |
b |
Value to be added. |
c |
Name of the map. |
d |
(optional) true, if values with set Empty Flag should not be added to map. Default: false. |
Example
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Result |
Value Added to Map |
MyKey |
Hallo (Empty Flag: false) |
MyMap |
Hallo |
Yes. |
|
MyKey |
Hello (Empty Flag: true) |
MyMap |
false |
Hello |
Yes. |
MyKey |
Hällo (Empty Flag: true) |
MyMap |
true |
Hällo |
No. |
See Also
add to inheritance-map(key a, value b, name of map c, inheritance level d, regex for empty e)
csv-into-map(file a, [mapname b], [keycol(s) c], [csv delim d], [csv encoding e], [clear first f])
fill-map-from-fields( map a, prefix b, index c, hidden d, [processing e] )
get value from map(key a, name of map b, delimiter c, item d)
increase map value(key a, value b, map name c, skip empty d)
select into map(a,b,[param &1 = c], d,e, f,g,h,i,j], delimiter k, map l, m)