# Collection-Element prüfen

Mit dem Plugin <img src="/files/firgmbQs9sdltO5jTwwV" alt="" data-size="line"> *Collection-Element prüfen* können Sie feststellen, ob ein gesuchtes Element in der Collection vorhanden ist.

<figure><img src="/files/CaVOtdEbsMwm7DNYtplf" alt="" width="288"><figcaption></figcaption></figure>

## Parameter "Collection"

Wählen Sie in diesem Auswahlfeld eine Variable vom Typ `collection` aus, die Sie durchsuchen möchten.

## Parameter "Element suchen"

In diesem Auswahlfeld wählen Sie die Variable aus, nach der Sie suchen möchten.

## Parameter "Ergebnis der Prüfung"

Das Ergebnis der Suche können Sie in einer Variable vom Typ `boolean` abspeichern.

## Parameter "Element-Index (optional)"

Optional können Sie eine Variable vom Type `integer` wählen, in der der Index des Elements gespeichert wird. Das erste Element einer Collection hat den Index `0`.

Wird das Element nicht gefunden, wird der Wert `-1` in der Variable abgespeichert.


---

# 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://help.aiaibot.com/robot/plugins/collections/collection-element-prufen.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.
