傳回兩個輸入清單中的通用值。 如果兩個清單之一為Null,則傳回空白清單。
清單
intersect(<parameters>)
參數 | 類型 |
---|---|
清單1 | 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
傳回清單。
intersect(
["sports", "news", "documentary"],
["sports", "movies", "documentary"]
)
傳回 ["sports", "news"]
intersect(
#{ExperienceDataPlatform.profile.interests},
["sports", "news", "documentary"]
)
傳回設定檔屬性與指定類別清單之間的通用專案。
intersect(
#{ExperienceDataPlatform.profile.interests},
@{myEvent.sport_interests}
)
傳回設定檔屬性和指定事件欄位之間的通用專案。