> For the complete documentation index, see [llms.txt](https://interactiveboard.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interactiveboard.gitbook.io/docs/objects/general-information/conditions.md).

# Conditions

Conditions can be used to only have an object enabled if certain conditions are met.

Information on various types of conditions can be found here: [Conditions](/docs/conditions/has-money.md)

{% tabs %}
{% tab title="Permission example" %}

```yaml
## This button only works for players with rank.vip permission
vipbutton1:
  type: button
  size: 256 128
  color: green
  
  ## conditions that need to be met
  conditions:
    ## checks if the player has the rank.vip permission
    perm1:
      type: permission
      ## permission to check
      permission: 'rank.vip'
  ## Button can't be clicked if permissions aren't met    
  on-click:
    sendmsg1:
      type: send_message
      message: 'You can only see this button and click it if you have the VIP rank!'
```

{% endtab %}
{% endtabs %}
