How do I apply for loop in txt file?

How do I apply for loop in a .txt file report?

You just need to include a for statement. For example:

{% for record in records %}
${record.rec_name}
{% end %}

Hope it helps!

It’s working perfectly! Thank you!