lookup(search, ...values)
Seach is evaluated to a number which is used as zero-based offset to values array, returning the value at evaluated offset.
If index goes out of bounds, first value is used as fallback.
Usage:
lookup(2, 0, 10, 20, 30) // => 20lookup(500, -100, 10, 20) // => -100 Copy
lookup(2, 0, 10, 20, 30) // => 20lookup(500, -100, 10, 20) // => -100
Function parameters
Static
Get tooltip data for the result.
Determine if the string term expression is identifier for this function.
String identifier from StringTerm.term
Generated using TypeDoc
lookup(search, ...values)
Seach is evaluated to a number which is used as zero-based offset to values array, returning the value at evaluated offset.
If index goes out of bounds, first value is used as fallback.
Usage:
Example