Merric Mercer wrote: > I may be wrong but I believe that the you cannot use the If statement > inside a template to evaluate a specific value. You use it to > determine whether the object or value exists ( has been returned by the > view). > > I think that this is because the developers wanted to maintain a > distinction between the presentation and the logic. > > I seem to remember that someone has written some code, as a patch, to > allow the IF statement to evaluate specific values, but cannot remember > where the code is. > {% ifequal myvar "value to test" %} {% endifequal %}
http://www.djangoproject.com/documentation/templates/#ifequal HTH, Rob :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---