> For the complete documentation index, see [llms.txt](https://wiki.advancedplugins.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.advancedplugins.net/abilities/conditions/multiple-conditions.md).

# Multiple Conditions

You can make multiple condition lines, and have different comparisons and outcomes for each one.\
Example:

```yaml
conditions:
  - '%attacker health% <= 5 : %allow%'
  - '%victim health% >= 15 : %allow%'
effects:
  - 'INCREASE_DAMAGE:100'
```

You can make conditions even more advanced by having multiple different types of conditions on one line.\
Use `&&` to make combine two conditions on one line and require both of them to be fit the comparison for your outcome to happen.\
Additionally, you can use `OR` to make at least one of these conditions fit for it to parse.\
Examples:

<pre class="language-yaml"><code class="lang-yaml"><strong>conditions:
</strong>  - '%attacker health% &#x3C;= 5 &#x26;&#x26; %victim health% >= 15 : %allow%'
effects:
  - 'INCREASE_DAMAGE:100'
</code></pre>

```yaml
conditions:
  - '%mob type% = RAVAGER OR %mob type% = POLAR_BEAR : %allow%'
effects:
  - 'INCREASE_DAMAGE:<random number>5-15</random number> %attacker%'
```

You can have up to as many of these in a line as you want, for example:

```yaml
conditions:
  - '%mob type% = SKELETON : %allow% OR %mob type% = ZOMBIE : %allow% OR %mob type% = ZOMBIE_VILLAGER : %allow% OR %mob type% = WITHER : %allow% OR %mob type% = WITHER_SKELETON : %allow% OR %mob type% = ZOMBIFIED_PIGLIN : %allow% OR %mob type% = SKELETON_HORSE : %allow% OR %mob type% = ZOMBIE_HORSE : %allow% OR %mob type% = STRAY : %allow% OR %mob type% = HUSK : %allow% OR %mob type% = PHANTOM : %allow% OR %mob type% = DROWNED : %allow% OR %mob type% = ZOGLIN : %allow%
effects:
  - 'ADD_HARM:<math>%level%*1.5</math> %victim%'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://wiki.advancedplugins.net/abilities/conditions/multiple-conditions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
