# 아이템 조건식

* 아이템을 선택할 때 나오는 팝업에 보여지는 아이템들의 리스트는 조건식을 이용하여 필터링 할 수 있습니다.
* 작성된 조건에 부합하는지 여부에 따라 아이템을 표시할 수 있습니다!

> `item`은 아이템 (TItem) 객체를 의미합니다.
>
> `unit`은 유저의 ScriptUnit 객체를 의미합니다.

## **변수**

| 변수                  | 설명              |
| ------------------- | --------------- |
| **item.level**      | 아이템의 레벨 (강화 수치) |
| **item.id**         | 아이템의 고유 아이디     |
| **item.count**      | 아이템의 개수         |
| **item.dataID**     | 아이템의 ID         |
| **item.index**      | 아이템의 인덱스        |
| **item.inTrade**    | 아이템의 거래 여부      |
| **item.exp**        | 아이템의 경험치        |
| **item.locked**     | 아이템의 잠금 여부      |
| **item.nftTokenID** | 아이템의 nft 토큰ID   |
| **item.options**    | 아이템의 옵션 리스트     |

**예) 레벨이 1 이상인 아이템만 리스트**

> item.level >= 1

**예) 1번 \~ 20번의 아이템만 리스트**

> item.dataID >= 1 and item.dataID <= 20

**예) 아이템의 이름이 “검” 인 경우 리스트**

> Server.GetItem(item.dataID).name == “검”


---

# 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.punkland.io/punkland/punkland-studio/start/itemcondition.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.
