적용 대상: ✅Microsoft Fabric✅Azure Data Explorer✅Azure Monitor✅Microsoft Sentinel
지정된 집합에 지정된 요소가 포함되어 있는지 여부를 확인합니다.
구문
set_has_element(set, value)
구문 규칙에 대해 자세히 알아봅니다.
매개 변수
| 이름 | Type | 필수 | 설명 |
|---|---|---|---|
| set | dynamic |
✔️ | 검색할 입력 배열입니다. |
| value | ✔️ | 검색할 값입니다. 값은 형식long, ,int, double, datetimetimespan, decimalstring, guid또는 bool.이어야 합니다. |
반품
true 또는 false 배열에 값이 있는지 여부에 따라 달라집니다.
예시
print arr=dynamic(["this", "is", "an", "example"])
| project Result=set_has_element(arr, "example")
출력
| 결과 |
|---|
| true |
관련 콘텐츠
배열에 값이 있는 위치를 찾는 데 사용합니다 array_index_of(arr, value) . 두 함수 모두 동일하게 수행됩니다.