Returns the common values in the two input lists. If one of the two lists is null, returns an empty list.
List
intersect(<parameters>)
Parameter | Type |
---|---|
list 1 | list |
list 2 | list |
intersect(listString,listString)
: listString
intersect(listDecimal,listDecimal)
: listDecimal
intersect(listInteger,listInteger)
: listInteger
intersect(listDateTime,listDateTime)
: listDateTime
intersect(listDateTimeOnly,listDateTimeOnly)
: listDateTimeOnly
intersect(listDateOnly,listDateOnly)
: listDateOnly
intersect(listDuration,listDuration)
: listDuration
intersect(listBoolean,listBoolean)
: listBoolean
Returns a list.
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.