# Condition

**Data condition**

<div align="left"><figure><img src="/files/8XvogyjrSA5WngFf6FvX" alt="" width="467"><figcaption></figcaption></figure></div>

1. 첫째 줄 : Key 값, 즉 비교할 항목의 ID를 입력하세요.
2. 둘째 줄 : Key 값과 Value 값을 비교할 비교 표현을 선택하세요.&#x20;
3. 셋째 줄 : Value 값, 즉 비교할 값을 입력하세요.

* 설정한 로직에서 필터링이 필요한 경우 [조건](/main/guide/dictionary/condition.md)을 만들기 위해 사용해요.
* 조건 하나가 필터 하나라고 생각하면 이해가 쉬워요.
* 발생하는 사건이 모든 조건에 부합해야 로직이 계속 실행돼요.

## 조건

<table><thead><tr><th width="91.33333333333331">표현</th><th width="323">구분</th><th>설명</th><th data-hidden>기호</th></tr></thead><tbody><tr><td>eq</td><td>조건 값과 같다</td><td>조건 항목 ID와 조건 값이 같을 경우, 다음 조건으로 넘어가요.</td><td>=</td></tr><tr><td>ne</td><td>조건 값과 다르다</td><td>조건 항목 ID와 조건 값이 다를 경우, 다음 조건으로 넘어가요.</td><td>!=</td></tr><tr><td>in</td><td>조건 값과 일치하는 요소를 하나 이상 포함한다</td><td>조건 값이 단일 데이터(String, Number, Boolean)로 이루어진 배열 데이터일 때 조건 항목 ID가 조건 값 안에 있을 경우 다음 조건으로 넘어가요.</td><td></td></tr><tr><td>nin</td><td>조건 값과 일치하는 요소들을 포함하지 않는다</td><td>조건 값이 단일 데이터(String, Number, Boolean)로 이루어진 배열 데이터일 때 조건 항목 ID가 조건 값 안에 있지 않을 경우 다음 조건으로 넘어가요.</td><td></td></tr><tr><td>gt</td><td>조건 값보다 크다</td><td>조건 항목 ID가 조건 값보다 클 경우, 다음 조건으로 넘어가요.</td><td>></td></tr><tr><td>gte</td><td>조건 값보다 크거나 같다</td><td>조건 항목 ID가 조건 값보다 크거나 같을 경우, 다음 조건으로 넘어가요.</td><td>>=</td></tr><tr><td>lt</td><td>조건 값보다 작다</td><td>조건 항목 ID가 조건 값보다 작을 경우, 다음 조건으로 넘어가요.</td><td>&#x3C;</td></tr><tr><td>lte</td><td>조건 값보다 작거나 같다</td><td>조건 항목 ID가 조건 값보다 작거나 같을 경우, 다음 조건으로 넘어가요.</td><td>&#x3C;=</td></tr></tbody></table>

> \#조건, #필터링, #조건 설정하는 방법, #이벤트 옵션, #조건 항목 ID, #조건 값, #eq, #ne, #in, #nin, #gt, #gte, #lt, #lte, #조건 값과 같다, #조건 값과 다르다, #조건 값과 일치하는 요소를 하나 이상 포함한다, #조건 값과 일치하는 요소들을 포함하지 않는다, #조건 값보다 크다, #조건 값보다 크거나 같다, #조건 값보다 작다, #조건 값보다 작거나 같다

2024.01.12 Jinny


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ohmyapp.io/main/guide/develop_app/command-execute-function/create-logic/conditions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
