# Set Condition

The first step is to select the item for which the condition will be evaluated.

<div align="left"><img src="/files/OIF79QAh1O1usF57D3Ws" alt="" width="300"></div>

Once the item is defined, you can click on the **Choose Function** button and select the function to be checked.

{% hint style="info" %}
If you want the condition to be satisfied only if the selected state persists for a minimum amount of time, you can configure a timer.
{% endhint %}


---

# 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.ohmautomation.io/en/ios/guide/set-condition.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.
