[Reporting engine Tag] Using "for" instead of "foreach"

Hi Supporters,
I would like to a simple loop through string length inside the template. Could you please guide me how to do it? Cause per my understanding, we only support foreach tag, but it’s not what I expected

Here is my input zip, please check (also please read my input.docx carefully, I already mentioned that it’s not working due to my example case)
https://drive.google.com/file/d/1pqjqct3ld3csrjrgr_8rm5it_b6dnqvf/view?usp=sharing

Moreover, I want do use reporting engine approach only, not mail merge.

@lukasnguyen

Could you please share some more detail about your use case? Please also share the input variable text and expected output document. We will then provide you more information about your query.