intersect intersect

두 입력 목록의 공통 값을 반환합니다. 두 목록 중 하나가 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}
)

프로필 속성과 지정된 이벤트 필드 간의 공통 항목을 반환합니다.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9