Status
Tech review

Style guide




Short description

Returns a number or text value in value_list that is in the same position as key is in key_list.

Output

Available since




Supported list types


Number list

This function returns the numeric value in value_list that is in the same position as string 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.


getMatchingValue(string key, string list key_list, number list value_list) #Output: number



Parser expressionDescription


getMatchingValue("Three", ["One", "Two", "Three", "Four", "Five"], [1, 1+1, 3*1, 4, 4+1])


This example returns the number: 3



Parameters used in this function

ParameterInput (data type)Description
xxx

Parameter description.
xxx

Parameter description.
xxx

Parameter description.



This function returns a




This function returns a  representing the numeric value in value_list that is in the same position as numeric 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.


getMatchingValue(string key, number list key_list, number list value_list) #Output: Number



Parser expressionDescription


getMatchingValue(5, [1, 3, 5, 7, 9], [1, 1+1, 3*1, 4, 4+1])


The function returns a : 3



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.
<parameter>

Parameter description.
<parameter>

Parameter description.



The function returns a




The function returns a  representing the numeric value in value_list that is in the same position as numeric 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 in position count(key_list) + 1.


getMatchingValue(string key, number list key_list, number list value_list) #Output: Number



Parser expressionDescription


getMatchingValue(5, [1, 3, 5, 7, 9], [1, 1+1, 3*1, 4, 4+1])


The function returns a : 3



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.
<parameter>

Parameter description.
<parameter>

Parameter description.



The function returns a




Text list

The function returns a value in value_list that is in the same position as text 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 in position count(key_list) + 1 .


getMatchingValue(text key, string list key_list, text list value_list)#Output: Text 



Parser expressionDescription


getMatchingValue("Spain", ["USA", "UK", "France", "Spain", "Germany"], ["Washington", "London", "Paris", "Madrid", "Berlin"])


The function returns a : "Madrid"



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.
<parameter>

Parameter description.
<parameter>

Parameter description.



The function returns a




The function returns a value in value_list that is in the same position as the numeric 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 in position count(key_list) + 1 .


getMatchingValue(number key, number list key_list, string list value_list) #Output: Text



Parser expressionDescription


getMatchingValue(8, [2, 4, 6, 8, 10], ["Washington", "London", "Paris", "Madrid", "Berlin"])


The function returns a : "Madrid"



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.
<parameter>

Parameter description.
<parameter>

Parameter description.



The function returns a