replace value(a, list b, list c, [delim d])
This function searches value a in the comma separated token list b. If a is found, the value at the same position in the comma-separated token list c is returned.
If a is not found in b, an empty text will be returned.
Parameters
Parameter |
Description |
a |
Search value. |
b |
Comma-separated list of values. |
c |
Comma-separated list of replacement values. |
d |
(optional) Delimiter for both lists. Default: , |
Examples
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Result |
D |
D,A |
Germany,Austria |
|
Germany |
A |
D,A |
Germany,Austria |
|
Austria |
I |
D,A |
Germany,Austria |
|
|