Script functions reference > Script functions in alphabetical order > G > GetMap

GetMap
Syntax
GetMap(str_mapName, str_key, num_index);
str_mapName 
str_key 
num_index 
Description
Returns the value from the specified value column in the specified map entry.
Returns
The value located in str_index of the entry specified by str_key.
Example
In this example, the following map (author) is used.
agatha christie  1890
alfred hitchcock 1899
The following script returns the second value from the entry with key agatha:
$born = GetMap("author","agatha",1);
When the script is run, the variable $born gets the value 1890.
OpenText StreamServe 5.6.2 Updated: 2018-01-26