--- title: "key in map()" slug: "basic-entry-exists-in-map" updated: 2026-08-12T06:50:59Z published: 2026-08-12T06:50:59Z canonical: "docs.lobstersoftware.com/basic-entry-exists-in-map" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # key in map() 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 |