index Function | Vantage CX - index - Vantage Customer Experience

Vantage Customer Experience User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Vantage Customer Experience
Release Number
1.6
Published
October 2023
Language
English (United States)
Last Update
2023-10-26
dita:mapPath
hbt1563223944614.ditamap
dita:ditavalPath
oyf1565965838286.ditaval
dita:id
tmo1562969305444
Product Category
Teradata Applications

Returns the index of the entry that matches internal filter function.

The following criteria expression always returns true.

index(
   list("a", "b", "c"),
    "b"
) == 1

This is a zero-based index so a match on the first entry returns an index of 0. The index function returns a -1 when the specified value was not found.