Look In Map Function
- Updated2025-07-30
- 2 minute(s) read
Checks whether a map includes an entry with the specified key and returns the associated value of the key.

Inputs/Outputs
map
—
map specifies the map in which you want to look for a key. This input accepts a map of any data type. The default data type is a map of 32-bit signed integers.
key
—
key specifies the key to look for in the map. The key must be of the same data type as the existing keys in the map.
default value
—
default value specifies the value to return in value if the specified key does not exist in the map. This input must be of the same data type as the existing values in the map.
key not found?
—
key not found? returns TRUE if map does not include an entry with the specified key. Otherwise, key not found? returns FALSE.
value
—
value returns the value of the entry with the associated key if key not found? is FALSE. If key not found? is TRUE, this output returns the value in default value. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Collections\Map Collection - Comparing Test Results.vi
- labview\examples\Design Patterns\Registration Map\Registration Map Usage.lvproj
map
—
key
—
default value
—
key not found?
—
value
—