> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/environment-query-system/useful-objects/environment-query/tests/has-path.md).

# Has Path

### Description

Picks [items](/ai-tree/environment-query-system/items.md) based on condition that there is path between two specified objects.

On top of common parameters that are listed above this test following parameters.

#### Parameters

| Name | Description                                          |
| ---- | ---------------------------------------------------- |
| From | Start of path (querier, item or specified key value) |
| To   | End of path (querier, item or specified key value)   |

### Example

In the picture below has path test is used to exclude [items](/ai-tree/environment-query-system/items.md) that querier doesn't have path to.

<figure><img src="/files/zhImg8w1VE3n5ATmZvrY" alt=""><figcaption></figcaption></figure>

To achieve this effect set Test Purpose to "Filter Only". Set Filter Type to "Minimum" and then set Min Value to any positive value (in example Min Value is 1). Then set From to "Querier" and To to "Item".

{% hint style="info" %}
For more information about querier visit [EQS Tester](/ai-tree/environment-query-system/useful-components/eqs-tester.md) tab.
{% endhint %}


---

# 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:

```
GET https://renownedgames.gitbook.io/ai-tree/environment-query-system/useful-objects/environment-query/tests/has-path.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.
