key in map()

Prev Next

This function checks if the key in parameter a exists in map b. If that is the case, true is returned, otherwise false.

Parameters

Parameter

Description

a

Key value.

b

(optional) Name of the map. Default: default.

Examples

Assume the map myMap with the values {key1=value, key2=value2}.

Parameter a

Parameter b

Result

key1

myMap

true

key

myMap

false

key1

myOtherMap

false