key_used_in_struct_map

The function key_used_in_struct_map tests if a certain key is present in a map of type DATASTRUCTURE, without creating the corresponding element.

 key_used_in_struct_map ( key_to_find; map_name)

The result of the function is type BOOL. The function yields TRUE if the map contains an element map[key].

The function key_used_in_text_map has two parameters:

  1. The parameter key_to_find is of type TEXT. This is the key to be detected in the map.
  2. The parameter map_name is of type MAP DATASTRUCTURE. The map to be tested for the presence of key_to_find.

An example is provided here.

 BOOL key_found := key_used_in_struct_map ("a_key" ; mymap )

The map index of the mymap is searched for the key a_key. If it is found, the variable key_found is set to TRUE.