# 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, !=
* \>=
* <=
* \>
* <


---

# 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://ajneb97.gitbook.io/interactions/requirements.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.
