--- title: "value in map()" slug: "basic-value-exists-in-map" updated: 2026-08-12T13:54:35Z published: 2026-08-12T13:54:35Z canonical: "docs.lobstersoftware.com/basic-value-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. # value in map() This function checks if the value **a** can be found in map **b**. > [!NOTE] > **NOTE:** > > Please note that you can also check for "hidden values". To get a return value "true", the compare value has to be an identical "hidden value". See the explanations for the Empty Flag. ## Parameters | Parameter | Description | | --- | --- | | a | Value to look for in the map. | | b | (optional) Name of the map. Default: "default". | ## Examples Defined is a map "myMap" containing the elements {key1=val1, key2=val2, key3=val3}. | Parameter a | Parameter b | Result | | --- | --- | --- | | val2 | myMap | true | | val4 | myMap | false | | val2 | myOtherMap | false |