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},
@event{myEvent.sport_interests}
)
Returns common items between profile attributes and given event field.
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76