Hi Team,
I’d like to request an enhancement to the [Repeat] block: please expose the current iteration value/index (e.g., i) so it can be used inside each repeated item.
This would immediately add value for common use cases like generating numbered lists, e.g.:
At the moment, the Repeat block seems to duplicate the same content each time (e.g., “Item 1)” repeated), with no way to reference the iteration counter within the repeated content.
If this capability already exists, I may have missed it in the UI - happy to be pointed to the right place. Otherwise, I’d appreciate it being considered for the roadmap.
Hi @Sergejs_L,
Welcome to the Blaze forum! 
Currently, you can achieve this using a for loop with the seq function within a repeat command. Here's an example:
{formtext: name=count; default=3}
* {repeat: for i in seq(1, count)}Item {=i}{if: i<count}
* {endif}{endrepeat}
Hi @AshwinMittal
Thanks for the quick reply - it genuinely saved my day.
I adapted it to my use case so the output is just the list (without the leading number). Here’s what I’m using:
{repeat: for i in seq(1, count - 1)}{=char}{=i}){if: i<count}{endif}
{endrepeat}{formtext: name=char}{formtext: name=count; default=10})
Sharing in case it helps someone else as well.
Also, I’d appreciate it if you could consider adding this as a UX improvement to the roadmap.
Thanks for the suggestion! Noted for improvement.