Function call
|
List
|
Key
|
Result
|
Notes
|
---|---|---|---|---|
FindItem(List, Key)
|
{8,5,7,1,3,4,9}
|
4
|
3
|
The item with a positional index of 4 (that is, the fifth item) in the categorical value is returned.
|
FindItem(List, Key)
|
{8,5,7,1,3,4,9}
|
10
|
NULL
|
There is no item with a positional index of 10, so NULL is returned.
|
FindItem(List, Key)
|
{8,5,7,1,3,4,9}
|
"4.0"
|
4
|
To compare with the Long values in the categorical value, Key is converted from a Text to a Long value, and the matching item is returned.
|
FindItem(List, Key)
|
{8,5,7,1,3,4,9}
|
4.0
|
4
|
To compare with the Long values in the categorical value, Key is converted from a Double to a Long value, and the matching item is returned.
|
FindItem(List, Key)
|
split("The quick brown fox")
|
1
|
"quick"
|
The item with a positional index of 1 (that is, the second item) in the array is returned.
|
FindItem(List, Key)
|
split("The quick brown fox")
|
"THE"
|
"The"
|
The matching Text item in the array is returned. String comparisons are always case insensitive.
|
FindItem(List, Key)
|
split("1 2 3 4 5")
|
4
|
"5"
|
Key is a Long value, so the item with a positional index of 4 in the array is returned.
|
FindItem(List, Key)
|
split("1 2 3 4 5")
|
"4"
|
"4"
|
Key is a Text value, so the matching text item in the array is returned.
|
FindItem(List, Key)
|
split("1 2 3 4 5")
|
4.0
|
"4"
|
Key is converted from a Double to a Text value, and the matching text item in the array is returned.
|