index Function | Vantage CX - 1.4 - index - Vantage Customer Experience

Vantage Customer Experience User Guide

Product
Vantage Customer Experience
Release Number
1.4
Release Date
June 2021
Content Type
User Guide
Publication ID
B035-3800-099K
Language
English (United States)

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.