increase map value(key a, value b, map name c, skip empty d)
Group |
Increases the value under key a in a Named Map c by the value b. Note:
If the initial value in the map is not numeric, it is converted to 0.
The return value of the function is the value of b converted to the type BigDecimal.
Parameter Description
Parameter |
Description |
a |
Key of the value. |
b |
The value to be added. |
c |
(optional) Name of the map. Default: default. |
d |
(optional) true, if only values without set Empty Flag should be used in b. Default: false. |
Example
The example entries are to be seen as called in sequence. The value under key mykey in map mymap is initially 0.
Parameter a |
Parameter b |
Parameter b empty? |
Parameter c |
Parameter d |
Result |
Value in map |
mykey |
123 |
No. |
mymap |
|
123 |
123 |
mykey |
123 |
No. |
mymap |
|
123 |
246 |
mykey |
123 |
Yes. |
mymap |
|
123 |
369 |
mykey |
123 |
Yes. |
mymap |
false |
123 |
492 |
mykey |
123 |
Yes. |
mymap |
true |
123 |
492 |
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, [default e])
select into map(a,b,[param &1 = c], d,e, f,g,h,i,j], delimiter k, map l, m, n, o)