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

# Condition types

## Number Comparison

<table><thead><tr><th width="113.7999267578125">Operation</th><th width="235.39990234375">Description</th><th>Example</th></tr></thead><tbody><tr><td>>=</td><td>Greater than or equal to</td><td><code>%player_health%>=10</code> Will pass if the player's health is <strong>greater than or equal to</strong> 10.0.</td></tr><tr><td>></td><td>Greater than</td><td><code>%player_health%>10</code> Will pass if the player's health is <strong>strictly greater than</strong> 10.0.</td></tr><tr><td>&#x3C;=</td><td>Less than or equal to</td><td><code>%player_health%&#x3C;=10</code> Will pass if the player's health is <strong>less than or equal to</strong> 10.0.</td></tr><tr><td>&#x3C;</td><td>Less than</td><td><code>%player_health%&#x3C;10</code> Will pass if the player's health is <strong>strictly less than</strong> 10.0.</td></tr></tbody></table>

Text operations

<table><thead><tr><th width="113.7999267578125">Operation</th><th width="235.39990234375">Description</th><th>Example</th></tr></thead><tbody><tr><td>==</td><td>Equal to</td><td><code>%player_name%==_theparanker_</code> Will pass if player is named <code>_theparanker_</code></td></tr><tr><td>!=</td><td>Not equal to</td><td><code>%player_name%!=_theparanker_</code> Will pass if player is not named <code>_theparanker_</code></td></tr><tr><td>&#x3C;-</td><td>Contains (left side for full text, right side text to contain)</td><td><code>%world%&#x3C;-lobby-</code> will pass if player is in any world that contains <code>lobby-</code> (such as <code>lobby-1</code> etc.)</td></tr><tr><td>!&#x3C;-</td><td>Not Contains (left side for full text, right side text to not contain)</td><td><code>%world%!&#x3C;-lobby-</code> will pass if player is in any world that does not contain <code>lobby-</code> (such as <code>lobby-1</code> etc.)</td></tr><tr><td>|-</td><td>Starts with (left side for full text, right side text to start with)</td><td><code>%world%|-lobby-</code> will pass if player is in any world that starts with <code>lobby-</code> (such as <code>lobby-1</code> etc.)</td></tr><tr><td>!|-</td><td>Not Starts with (left side for full text, right side text to not start with)</td><td><code>%world%!|-lobby-</code> will pass if player is in any world that does not start with <code>lobby-</code> (such as <code>lobby-1</code> etc.)</td></tr><tr><td>-|</td><td>Ends with (left side for full text, right side text to end with)</td><td><code>%world%-|nether</code> will pass if player is in any world that ends with <code>nether</code> (such as <code>world_nether</code> etc.)</td></tr><tr><td>!-|</td><td>Not Ends with (left side for full text, right side text to not end with)</td><td><code>%world%!-|nether</code> will pass if player is in any world that does not end with <code>nether</code> (such as <code>world_nether</code> etc.)</td></tr></tbody></table>

> For `==` and `!=` you can check for empty output of a placeholder using `%my_placeholder%=` and `%my_placeholder%!=`.


---

# 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://conditions.gitbook.io/conditions-docs/condition-types.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.
