range Function | Vantage CX - 1.4 - range - 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 true if the middle value is greater than or equal to the first parameter and less than or equal to the third parameter.

The following shows the syntax for range.

range (lower_value,  middle_value,  upper_value)

For example, the following criteria expression returns true if a Customer.nav.page attribute with a value that has a pattern of .Credit.* is present within the last four instances of this attribute.

range(
    0,
    index(
        get("Session.Customer.nav.page"),
        pattern(".Credit.*")
    ),
    3
)