Is it possible to get the total number of items in a repeater?

Pretty straight forward. Is it possible to know or get the number of items in a repeater? I want to hide an element based on if the repeater returns zero items.

In addition to the loop.variableName variable, the repeater creates an array loop.variableName_source which contains the entire result of the repeater and a variable loop.variableName_idx which contains the index of the current iteration. You can use


to get the number of items returned by the repeater. However, I’m not sure this is what you are looking for. This variable only exists in the loop scope so I don’t think you can use it to influence a element that is not a child of the repeater.

1 Like

The element is a child. I completely missed the extra two variables.