Look In Map Function

Owning Palette: Map VIs and Functions

Requires: Base Development System

Checks whether a map includes an entry with the specified key and returns the associated value of the key.

Examples

 Add to the block diagram  Find on the palette
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 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 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? returns TRUE if map does not include an entry with the specified key. Otherwise, key not found? returns FALSE.
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 VIs for examples of using the Look In Map function: