# Item Formula

The list of items displayed in the popup when selecting an item can be filtered using conditional expressions.\
You can display items based on whether they meet the specified conditions!

* **`item`** refers to the item (TItem) object.
* **`unit`** refers to the user's ScriptUnit object.

## Variable

| Varialbe            | Description                    |
| ------------------- | ------------------------------ |
| **item.level**      | Item Level (Enhancement Count) |
| **item.id**         | Item ID                        |
| **item.count**      | Item Quantity                  |
| **item.dataID**     | Item dataID                    |
| **item.index**      | Item Index                     |
| **item.inTrade**    | Item Trade Status              |
| **item.exp**        | Item Experience                |
| **item.locked**     | Item Lock Status               |
| **item.nftTokenID** | Item NFT Token ID              |
| **item.options**    | Item Option List               |

Example: Filtering Items with Level 1 or Higher

> item.level >= 1

Example: Filtering Items with IDs Between 1 and 20

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

Example: Filtering Items with the Name "Sword"

> 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-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.
