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

# Requirements

This section is used for player options and conditional dialogues. Every line of the **requirements list** refers to a condition that MUST be true. You can use all kind of PlaceholderAPI variables.

{% hint style="info" %}
For example, in the config below, there is an option which requires the player to be level 20 or greater to appear on the chat. If the player doesn't accomplishes this condition the option will not be displayed.
{% endhint %}

```yaml
option3:
  text: "&eI am kind of a hero here."
  requires:
  - "%player_level% >= 20"
  start_conversation: conversation4
```

{% hint style="info" %}
You can also check for 'or' conditions, meaning that a condition line will be approved if one of many conditions in the same line is accomplished. For example, in this option there is just one condition. The player must be level 20 or greater, OR the player must be op.
{% endhint %}

```yaml
option3:
  text: "&eI am kind of a hero here."
  requires:
  - "%player_level% >= 20 or %player_is_op% == yes"
  start_conversation: conversation4
```

{% hint style="info" %}
You can also compare two variables in one condition line.
{% endhint %}

```yaml
conditions:
- '%something% contains %player_name%'
```

## Type of Conditionals

**For Text**

* equals, ==
* !equals, !=
* equalsIgnoreCase
* !equalsIgnoreCase
* startsWith
* !startsWith
* contains
* !contains

**For Numbers**

* equals, ==
* !equals, !=
* \>=
* <=
* \>
* <
