greaterThan Function | Vantage CX - 1.4 - greaterThan - 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 for numerical attribute value greater than a given value. The greaterThan function is used only within the context of the filter or is functions.

In the following criteria expression, the greaterThan function returns true when the cart complex attribute category has two items where the value for the price attribute is greater than 1.25.

count(
    filter(
       get("Account.cart"),
       "price",
       greaterThan(1.25)
    )
) == 2