increase map value(key a, value b, map name c, skip empty d)


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