# Arrays of data

Sometimes when you click on the copy button for a data item it will look like this i.e. contain \[0] within it.

```
${TransactionDetail.Payments[0].TransAmount}
```

&#x20;If there is a \[0] inside a data item, it means it is actually part of a collection and cannot be used by itself. I.e. in the above example the field we are trying to show is transaction amount for payments.

The reason why this won’t work is because there could be hundreds of payments. I.e. the copy/paste function is useful where it is a set thing but for collections we can’t use this.

{% hint style="info" %}
EXCEPTION TO THE ABOVE RULE
{% endhint %}

&#x20;There is a slight exception to the rule in that it IS possible to show the first / last item in a list. I.e. let’s say there were 100 payments but we were only interested in the most recent one. We can do this:

&#x20;${TransactionDetail.Payment&#x73;**.Last()**.TransAmount}

&#x20;Or we can do this if the order is the reverse of what is expected:

&#x20;${TransactionDetail.Payment&#x73;**.First()**.TransAmount}
