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

# Conditions

## Syntax

```yaml
# types:
# purchase_conditions (only for products)
# view_conditions (products and items)
#
<type>_conditions:
  condition_name: #your own condition name
    type: TYPE
    input: INPUT
    output: OUTPUT
```

## Type

Type is a condition type. Here is list of all types.

| Type           | Information                                   | Usage                                                                       |
| -------------- | --------------------------------------------- | --------------------------------------------------------------------------- |
| hasPermission  | Player have specific permission               | <p>type: hasPermission<br>input: '\<your permission>'<br>output: null </p>  |
| !hasPermission | Player not have specific permission           | <p>type: !hasPermission<br>input: '\<your permission>'<br>output: null </p> |
| hasSubscribe   | Player is subscribing to specific product     | <p>type: hasSubscribe<br>input: '\<product id>'<br>output: null </p>        |
| !hasSubscribe  | Player is not subscribing to specific product | <p>type: !hasSubscribe<br>input: '\<product id>'<br>output: null </p>       |
| >              | input > output                                | <p>type: ><br>input: 'Placeholder/Number'<br>output: 'Number'</p>           |
| <              | input < output                                | <p>type: <<br>input: 'Placeholder/Number'<br>output: 'Number'</p>           |
| >=             | <p>input > output OR <br>input = output</p>   | <p>type: >=<br>input: 'Placeholder/Number'<br>output: 'Number'</p>          |
| <=             | <p>input < output OR <br>input = output</p>   | <p>type: <=<br>input: 'Placeholder/Number'<br>output: 'Number'</p>          |
| ==             | input equals output                           | <p>type: ==<br>input: 'Placeholder/Number'<br>output: 'Number'</p>          |
