Key to value mapping
|
Signature |
|---|
|
Value2Value(Keys, Values, Key) |
|
Description |
|---|
|
Maps a Key to a value using look-up arrays. The Values table may contain one additional value, which is returned as the default when no Key is found. |
|
Result |
|---|
|
The value corresponding to the found Key. If there is no Key found and the Values array has one extra element, that element is returned as the default. |
|
Arguments |
|
|---|---|
|
Keys |
Array of keys to search in. Must be sorted in ascending order. |
|
Values |
Array of values corresponding to the keys. Must have the same size as the keys array or one extra default value. |
|
Key |
The key to search for in the keys array. |