range Function | Vantage CX - range - 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 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
)