# Conditions

Conditions allow you to add custom functionality without the use of Python plugin; though they can be used together. These are separate from the "Training Conditions" and will execute whether the bot is started/stopped/tracing/stalling.

&#x20;

<figure><img src="/files/PSSET1MlTa7KGIozhylU" alt=""><figcaption></figcaption></figure>

1. Select options from the `If` dropdown and click `Add`.
2. After you've added the conditions it is now time to add `Then` options. This is what the bot will do once your conditions are met.
   * You may select multiple `Then` options. The order you select them in is the order they will execute.


---

# 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://guide.phbot.org/phbot/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.
