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


icon

Inputs/Outputs

  • cmap.png 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.

  • cstr.png 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.

  • ci32.png 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.

  • ibool.png 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.

  • ii32.png 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