I used this code but does not work.
{% if(format_number(data[i][“paid_amount”]) === 0 )
{ %}
{%= __(“-”) %}
{ %}
else
{ %}
{%= format_number(data[i][“paid_amount”]) %}
{ %}
%}
you dint need to write js code inside jinja!
please follow instruction bellow print format for example of using for loop in jinja
you can check this post also: