filter Function | Vantage CX - filter - 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 a filtered list of values by testing a condition.

The following example determines whether the cart has three toy trucks. The expression gets the groups of attributes for the cart complex attribute category. Next, the expression filters the groups in the cart complex attribute category for all the groups that contain a product attribute with the value ToyTruck. The expression evaluates to true when the cart complex attribute category has three product attributes with the value ToyTruck.

count(
  filter(
     get("Account.cart")
      "product",
     "ToyTruck"
  )
) == 3