# Collections

In Robot können Variablen mit dem Typ `collection` angelegt werden. Ein Collection ist ein Sammlung von Elementen. Man kann eine Collection auch als Container für mehrere Variablen betrachten.

Einige Plugins erlauben das Auslesen von Elemente der Collection über den Index des Elements.

{% hint style="warning" %}
Das erste Element eine Collection hat den Index `0`.
{% endhint %}

Normalerweise haben alle Elemente der Collection den selben Datentyp, dies ist aber nicht zwingend notwendig.

Eine Vielzahl von Plugins erlaubt das Verarbeiten von Collections:

{% content-ref url="/pages/DhJTlmpPiVjVnUBMeUCY" %}
[Element zur Collection hinzufügen](/robot/plugins/collections/element-zur-collection-hinzufugen.md)
{% endcontent-ref %}

{% content-ref url="/pages/D1zsna57gIlDFy4auqVV" %}
[Element aus Collection lesen](/robot/plugins/collections/element-aus-collection-lesen.md)
{% endcontent-ref %}

{% content-ref url="/pages/j8MEU3KgPIYmkLNh9oMj" %}
[Element entfernen](/robot/plugins/collections/element-entfernen.md)
{% endcontent-ref %}

{% content-ref url="/pages/IRCbqlmGtBrx83AHePip" %}
[Collection löschen](/robot/plugins/collections/collection-loschen.md)
{% endcontent-ref %}

{% content-ref url="/pages/IobSKKytBZfOWhF8PLre" %}
[Collection-Element prüfen](/robot/plugins/collections/collection-element-prufen.md)
{% endcontent-ref %}

{% content-ref url="/pages/DjsBiqpEKjs40FEYINHU" %}
[Elemente in einer Collection abzählen](/robot/plugins/collections/elemente-in-einer-collection-abzahlen.md)
{% endcontent-ref %}

{% content-ref url="/pages/UwR240znA4ux9TGPE6oe" %}
[Collection sortieren](/robot/plugins/collections/collection-sortieren.md)
{% endcontent-ref %}

{% content-ref url="/pages/Mp3Pp9XWa7Va2wO9B8iR" %}
[Doppelte Elemente entfernen](/robot/plugins/collections/doppelte-elemente-entfernen.md)
{% endcontent-ref %}


---

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