intersect intersect
Returns the common values in the two input lists. If one of the two lists is null, returns an empty list.
Category
List
Function syntax
intersect(<parameters>)
Parameters
Parameter
Type
list 1
list
list 2
list
Signatures and returned types
intersect(listString,listString)
: listStringintersect(listDecimal,listDecimal)
: listDecimalintersect(listInteger,listInteger)
: listIntegerintersect(listDateTime,listDateTime)
: listDateTimeintersect(listDateTimeOnly,listDateTimeOnly)
: listDateTimeOnlyintersect(listDateOnly,listDateOnly)
: listDateOnlyintersect(listDuration,listDuration)
: listDurationintersect(listBoolean,listBoolean)
: listBoolean
Returns a list.
Examples
intersect(
["sports", "news", "documentary"],
["sports", "movies", "documentary"]
)
Returns [“sports”, “news”]
intersect(
#{ExperienceDataPlatform.profile.interests},
["sports", "news", "documentary"]
)
Returns common items between profile attributes and given list of categories.
intersect(
#{ExperienceDataPlatform.profile.interests},
@{myEvent.sport_interests}
)
Returns common items between profile attributes and given event field.
recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9