If you look carefully, you'll notice I used the ifequal tag (which has existed for ages), instead of the if tag.
You're right though; in the dev version, you can just use the if tag with the == operator in between. 2010/1/31 shofty <m...@bytejunkie.co.uk>: > i wasn't very clear. i was referring to the inability to use operators > in an if statement until current dev version. > > Matt > > On Jan 31, 12:15 am, Super McFly <martinmal...@gmail.com> wrote: >> You have been able to use if statements as far back as I can remember >> using django (over a year). You might as well finish posting your >> actual problem since you're here and I'll try to help. >> >> As for your version problem you more than likely have the latest >> development version. I notice the same thing despite having the latest >> code. >> >> On Jan 30, 4:23 pm, shofty <m...@bytejunkie.co.uk> wrote: >> >> > On Jan 30, 5:37 am, Sam Lai <samuel....@gmail.com> wrote: >> >> > > You can always use if blocks, e.g. >> >> > > {% ifequal content.model_type "post" %} >> > > {% include "content/post/include.html" %} >> > > {% elseifequal ... %} >> > > ... >> > > {% endif %} >> >> > I believe im right in saying that you can only use if statements in >> > tags when using the development django codebase. >> > cos thats what i've read in the docco, but even so i cant get it >> > working against the development code. >> >> > another question if i may as its relevant and someone may know the >> > answer. if you install the dev code from subversion, when you start >> > the server does it still report itself as version 1.2 alpha 1 or have >> > i got a problem installing my dev version. >> >> > Matt > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.