Re: if forloop.counter

2009-08-13 Thread When ideas fail

Thanks!

On 13 Aug, 20:52, Jonas Obrist  wrote:
> When ideas fail wrote:
> > Hello, i know you can have things like {% if forloop.last %}
> > but is it possible to have an if statement that matches the value of a
> > forloop counter
> > so it would be like:
>
> > {% if forloop.counter = 6 % }
>
> > or similar and how could i do that?
>
> > Thanks
>
> {% ifequal forloop.counter 6 %}
> ...
> {% endif %}
>
> Jonas
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: if forloop.counter

2009-08-13 Thread Jonas Obrist

When ideas fail wrote:
> Hello, i know you can have things like {% if forloop.last %}
> but is it possible to have an if statement that matches the value of a
> forloop counter
> so it would be like:
>
> {% if forloop.counter = 6 % }
>
> or similar and how could i do that?
>
> Thanks
>
> >
>   
{% ifequal forloop.counter 6 %}
...
{% endif %}

Jonas

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---