# Channel Condition

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

This condition will run actions based off the channel that the command / event was triggered in or where a [menu option ](/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option.md)/ [button](/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons.md) was clicked.

## Run multiple actions

This option allows you to set the condition to run multiple actions at the same time. This means if multiple conditions are met, then each true condition will be run simultaneously. When disabled, only the first met condition will be executed.

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

## Channel

This section is a dropdown menu of channels that may be selected for the condition to compare. Click the refresh icon next to the title if the channel you're looking for isn't showing.

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

Click the add condition button to add one or more compared channels  to the condition

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

You may individually click on a compared channel to edit the values and more.

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

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

## Channel ID

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

## Run when the command is NOT used in this channel

This option, when enabled, allows you to run the actions below the selected block when the user does not use the command in the specific channel, instead of running when the user does.

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

Here is an example layout of the condition:

<figure><img src="/files/AxaoIns905N3efyfr3Fc" 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/channel-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.
