# Conditions

Conditions are green in color and are used to compare differences between values. With these blocks, you can create different routes for commands to take, depending on what your user chooses. Conditions are also very useful for gathering data from [actions](https://botghost.com/docs/custom-commands-and-events/actions) and [options](https://botghost.com/docs/custom-commands-and-events/options).

## Connection Condition Blocks

### Mobile

Simply press the top circle on the condition block to start the connection line, from here you can simply press the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F4RhBA4Egy5pzB80JW6qV%2FConnect%20Blocks%20Mobile.gif?alt=media&#x26;token=3dcad40a-862c-4bc8-84c3-5e02583c2e9b" alt=""><figcaption></figcaption></figure>

### Desktop/PC

Simply press and hold the top circle on the condition block to start the connection line, from here you can simply drag the connection line to the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F7oaSO0t7Jz47TpGhJEiC%2FConnect%20Blocks%20(2).gif?alt=media&#x26;token=7836d247-c308-4e86-b960-500478942669" alt=""><figcaption></figcaption></figure>

## Helper Text

Helper text is a very useful tool if you are looking for a way to add notes to actions and conditions in your command or event builder.&#x20;

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FRS0rM2SaTIjta3Hu4gF1%2Fimage.png?alt=media&#x26;token=a7be1c0a-70ea-4757-a988-1b3613dfbaee" alt=""><figcaption></figcaption></figure>

Helper text can be enabled by pressing the "Add Helper Text" button. You can then enter your text, select a colour, an icon and choose on what side of the block the text will show.&#x20;

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F2T7lnsXNS61LQzjQ8zXh%2Fimage.png?alt=media&#x26;token=c4afaa07-517b-49ff-8d9e-70ffd2ede650" alt=""><figcaption></figcaption></figure>

## Condition Blocks

| Block                                                                                                              | Information                                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Comparison Condition](https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition)       | This block is useful to compare two values / [variables](https://botghost.com/docs/custom-commands-and-events/variables) with different comparison types.                 |
| [Permission Condition](https://botghost.com/docs/custom-commands-and-events/conditions/permission-condition)       | This condition checks a user's permissions to see if they have any you choose.                                                                                            |
| [Chance Condition](https://botghost.com/docs/custom-commands-and-events/conditions/chance-condition)               | The chance condition allows you to create chances that all happen via a "%" chance to create random scenarios.                                                            |
| [Channel Condition](https://botghost.com/docs/custom-commands-and-events/conditions/channel-condition)             | This condition will check if the command / event was triggered in a specific channel selected in the condition.                                                           |
| [Role Condition](https://botghost.com/docs/custom-commands-and-events/conditions/role-condition)                   | Like the permission condition, it checks if a user has a specific role.                                                                                                   |
| [User Condition](https://botghost.com/docs/custom-commands-and-events/conditions/user-condition)                   | The user condition compares what user is using the command, triggered an event or used the last button / select menu.                                                     |
| [Premium Check Condition](https://botghost.com/docs/custom-commands-and-events/conditions/premium-check-condition) | This condition runs actions based off if the bot has a [premium subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) or not. |
