You can remove this if at all and use css based formatting if you want
to.

but otherwise :
{% ifequal athlete.name coach.name %}
    ...
{% endifequal %}

Taken from  http://docs.djangoproject.com/en/dev/topics/templates/

Alan.

On Apr 22, 2:48 pm, Nalini <nalini...@gmail.com> wrote:
> >  {% autopaginate rows 5%}
>
> >   {% for row in rows %}
> >   <TR>
> >         {% for value in row %}
> >             val=this.rowindex
> >                  {% if (val == 0) %}
> >                    <TD><TH><b>{{ value }}</b></TH></TD>
>
> >                  {% else %}
>
> >                          <TD>>{{ value }}</TD>
> >                  {% endif %}
>
> >     {% endfor %}
>
> >    </TR>
> >   {% endfor %}
>
> >  {% paginate %}
>
> When i try executing this script i get this error
>
> 'if' statement improperly formatted
>
> Can anyone help me..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to