Re: if number <= othernumber

2009-05-19 Thread brawaga
Excuse me for my awful english ;) On May 13, 7:33 pm, "richardcur...@googlemail.com" wrote: > Can I do in Django 0.9 something like if number <= othernumber ? Try to create your own filter that compares things (numbers as a case) In that particular case when you want to check a length of a lis

Re: if number <= othernumber

2009-05-13 Thread Miguel
ahm, you mean in the templates... I couldn't know how to do it. Usually I implement the comparison in the view and implement the if equal in the template. Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 2:49 PM, richardcur...@googlemail.com < richardcur...@googlemail.com> wrote: > > so t

Re: if number <= othernumber

2009-05-13 Thread Dougal Matthews
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 y

Re: if number <= othernumber

2009-05-13 Thread richardcur...@googlemail.com
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 django-users@googlegroups.com To unsubscri

Re: if number <= othernumber

2009-05-13 Thread Miguel
sure, you can. I am using 0.96 version. Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 2:33 PM, richardcur...@googlemail.com < richardcur...@googlemail.com> wrote: > > Can I do in Django 0.9 something like if number <= othernumber ? > > > > > --~--~-~--~~~--