# Get by Index

Retrieves an element of an array, addressed by a specified index. The block has, by default, two input pins and an output pin. You can provide the collection and an index number as input and the block will provide the element with the given index from the collection.

The index can be both a pin or a block property:

Setting | Description
--- | ---
Element type | byte char double int long object short string
Index | The index value for the element to get.