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 %}
>
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
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
3 matches
Mail list logo