> For the complete documentation index, see [llms.txt](https://help.aiaibot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aiaibot.com/robot/plugins/collections.md).

# 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 %}
