Django by default doesn't allow this. This is a design decision, comparisons like that in your template are considered 'advanced logic.' It is discussed here; http://docs.djangoproject.com/en/dev/misc/design-philosophies/#don-t-invent-a-programming-language
However, this doesn't stop you having your own template tag that allows it. Or using this one that is on djangosnippets; http://www.djangosnippets.org/snippets/1350/ This is the same all the way up to django 1.1 Cheers, Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/5/13 [email protected] <[email protected]>: > > so the syntax is ???: > > {% if number <= othernumber %} > > {% endif %} > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

