Documentation Index

Fetch the complete documentation index at: https://docs.lobster-world.com/llms.txt

Use this file to discover all available pages before exploring further.

key for value in map()

Prev Next

This function returns the key to a value a in map b.

If no key is found, an empty string with set Empty Flag is returned.

The first key found is returned (there may be more than one).

Parameters

Parameter

Description

a

Value.

b

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

c

(optional) true if value a only has to be contained in the map value and does not have to be identical. Default: false.

Examples

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

Parameter a

Parameter b

Parameter c

Result

value

myMap

key1

other

myMap

true

key2