You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The function returns a STRING value in value_list that is in the same position as key is in key_list, or in case key doesn't exist in key_list and value_list has more elements than key_list then the element of value_list is in position count(key_list) + 1.

Syntax
getMatchingValue(string key, string list key_list, number list value_list) #Output: String
Examples
Parser expressionDescription
getMatchingValue("Spain", ["USA", "UK", "France", "Spain", "Germany"], ["Washington", "London", "Paris", "Madrid", "Berlin"])

The function returns a STRING : "Madrid".

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER LIST