On Thu, Apr 7, 2011 at 12:25 PM, aaron <[email protected]> wrote:
> Hi there,
> I'm trying to do something quite simple within my html using ifnotequal (dj
> 0.96). The code within my html is as follows:
>             {% ifnotequal {{the_types.0}} "Nothing dude" %}
>                 <p>{{the_types.0}}</p>
>             {% endifnotequal %}

Take out the {{ }} around the variable inside of the {% ifnotequal %}
tag. Those braces are just for inserting the value of the variable
into HTML content, not for referencing it inside of a template tag.

{% ifnotequal thetypes.0 "Nothing dude" %}
...
{% endifnotequal %}
should work.


-- 
Regards,
Ian Clelland
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to