Re: Ifnotequal used with Length filter and a zero value not working

2009-06-24 Thread Matthew
Ah, d'oh - Very obvious, thanks very much! On Jun 24, 1:28 pm, Marcin Mierzejewski wrote: > Hi Matthew, > > > I have what is basically this layout: > > > {% ifnotequal activeusers|length 0 %} > >     {{ activeusers|length }} Friends Online > > {% else %} > >     Friends > > {% endifnotequal %} >

Re: Ifnotequal used with Length filter and a zero value not working

2009-06-24 Thread Marcin Mierzejewski
Hi Matthew, > I have what is basically this layout: > > {% ifnotequal activeusers|length 0 %} >     {{ activeusers|length }} Friends Online > {% else %} >     Friends > {% endifnotequal %} Try this: {% if activeusers %} {{ activeusers|length }} Friends Online {% else %} Friends {% endif

Ifnotequal used with Length filter and a zero value not working

2009-06-24 Thread Matthew
Hey all, I'm having a problem getting ifnotequal logic to work. I have what is basically this layout: {% ifnotequal activeusers|length 0 %} {{ activeusers|length }} Friends Online {% else %} Friends {% endifnotequal %} in one of my templates. Its not quite as simple as that, theres some