          {% if athlete_list and not coach_list %}
              There are some athletes and absolutely no coaches.
          {% endif %}
  
      ``if`` tags do not allow ``and`` and ``or`` clauses with the same
      tag, because the order of logic would be ambigous. For example,
      this is invalid::
  
          {% if athlete_list and coach_list or cheerleader_list %}
  
      If you need to combine ``and`` and ``or`` to do advanced logic, just use
      nested if tags. For example::
 
</s> remove     As you can see, the ``if`` tag can take an option ``{% else %}`` clause that
    will be displayed if the test fails.
 </s> add     As you can see, the ``if`` tag can take an option ``{% else %}`` clause
    that will be displayed if the test fails. </s> remove     of the block are output:

    ::
 </s> add     of the block are output:: </s> remove     Only space between *tags* is normalized -- not space between tags and text. In
    this example, the space around ``Hello`` won't be stripped::
 </s> add     Only space between *tags* is normalized -- not space between tags and text.
    In this example, the space around ``Hello`` won't be stripped:: </s> remove     Add a value to the context (inside of this block) for caching and easy
 </s> add     Adds a value to the context (inside of this block) for caching and easy </s> remove     # Note: This returns the exact same node on each {% cycle name %} call; that
    # is, the node object returned from {% cycle a b c as name %} and the one
    # returned from {% cycle name %} are the exact same object.  This shouldn't
    # cause problems (heh), but if it does, now you know.
 </s> add     # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know.
    ``if`` tags do not allow ``and`` and ``or`` clauses with the same tag,
    because the order of logic would be ambigous. For example, this is
    invalid::
          {% if athlete_list and not coach_list %}
              There are some athletes and absolutely no coaches.
          {% endif %}
  
    ``if`` tags do not allow ``and`` and ``or`` clauses with the same tag,
    because the order of logic would be ambigous. For example, this is
    invalid::
    ``if`` tags do not allow ``and`` and ``or`` clauses with the same tag,
    because the order of logic would be ambigous. For example, this is
    invalid::
    ``if`` tags do not allow ``and`` and ``or`` clauses with the same tag,
    because the order of logic would be ambigous. For example, this is
    invalid::
  
          {% if athlete_list and coach_list or cheerleader_list %}
  
      If you need to combine ``and`` and ``or`` to do advanced logic, just use
      nested if tags. For example::
keep keep keep keep replace replace replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaulttags.py