Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added a note about not using ifequal and ifnotequal to compare agains…

…t True,

False, None, etc.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit db6688a454497758e17773db96cbde78a9f1e1eb 1 parent c0127f0
@malcolmt malcolmt authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/templates.txt
5 docs/templates.txt
@@ -540,6 +540,11 @@ The arguments can be hard-coded strings, so the following is valid::
{% endifequal %}
+It is only possible to compare an argument to template variables or strings.
+You cannot check for equality with Python objects such as ``True`` or
+``False``. If you need to test if something is true or false, use the ``if``
+and ``ifnot`` tags instead.

0 comments on commit db6688a

Please sign in to comment.
Something went wrong with that request. Please try again.