# User Condition

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

This condition compares a user ID of whoever triggered the command / event and is used to run actions based off what user is inputted.

## User

This field accepts a plain user ID, a [user option](/custom-commands-and-events/options/user-option.md) or a [variable](/custom-commands-and-events/variables.md) that returns a plain user ID. Click the add condition button below to add the value to the builder as part of the condition.

<figure><img src="/files/4gK3S4NNYy5n10CxSUZO" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1yK5yOBM1zVV8NrcxrRd" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Click the block on the builder to access the following menu.
{% endhint %}

<figure><img src="/files/0LE0toYpsEdQrREqau5G" alt=""><figcaption></figcaption></figure>

## User ID

In this section you can edit the compared user by switching the user ID. [Variables](/custom-commands-and-events/variables.md) may be used this in field or a plain user ID.

## Run when it is NOT this user

This option, when enabled, allows you to run the actions below the selected block when it is not the user who ran the command, instead of running when it is the user.

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

Here is an example layout for this condition:

<figure><img src="/files/0VW4tnFJDwMUF8B4ft8A" alt=""><figcaption></figcaption></figure>


---

# 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://documentation.botghost.com/custom-commands-and-events/conditions/user-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.
