Chas, I think the forloop.counter starts at 1 and forloop.counter0 starts at 0.
On Apr 11, 12:10 pm, "Chas. Owens" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 12:09 PM, Kenneth Gonsalves<[EMAIL PROTECTED]> wrote: > > snip> >> {% if forloop.counter % 2 %} > > > > divisibleby > > > http://www.djangoproject.com/documentation/templates/#divisibleby > > snip > > Alright, call me a moron, but this isn't working. What am I doing wrong? > > {% if {{ forloop.counter|divisibleby:"2" }} %} > > -- > Chas. Owens > wonkden.net > The most important skill a programmer can have is the ability to read. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---