> Have you read the documentation? :)
> http://www.djangoproject.com/documentation/templates/#if

indeed, but I was looking in the wrong places entirely.  Thanks!  And,
apologies for missing the obvious...

-Heather


On Apr 5, 4:41 pm, Georgi Stanojevski <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] напиша:
>
> > Is it possible to check for multiple items in that initial if
> > statement? For example:
> > ____________________________
> > if species.range or species.habitat or species.behavior
> >      do some stuff
> > endif
> > ____________________________
>
> > It seems that this should be very simple, but I haven't come across
> > the answer yet so I thought I'd check with the fine folks of the
> > Django list!
>
> Have you read the documentation? :)
>
> http://www.djangoproject.com/documentation/templates/#if
>
> Multiple uses of the same logical operator are fine, as long as you use
> the same operator. For example, this is valid:
>
> {% if athlete_list or coach_list or parent_list or teacher_list %}
>
> --
> Glisha
> The perfect OS, MS-DOS!
> No patches, no root exploits for 21 years.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to