summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@thenicols.net>2016-04-28 22:51:40 +0100
committerTim Graham <timograham@gmail.com>2016-04-29 12:38:46 -0400
commitdac075e9103ba961af4f70b4011616daa72985d4 (patch)
tree7b1e5d4328c8d652e4a16a5798059fdc505a63b4 /docs
parent246020efc59de1a64b52fdda6a460904151dae36 (diff)
Refs #26479 -- Documented is/is not if tag operator behavior for nonexistent variables.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/builtins.txt21
1 files changed, 15 insertions, 6 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 40fa5d9e03..6c766c8a14 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -523,8 +523,12 @@ Not contained within. This is the negation of the ``in`` operator.
Object identity. Tests if two values are the same object. Example::
- {% if value is None %}
- This will output if and only if value is None.
+ {% if somevar is True %}
+ This appears if and only if somevar is True.
+ {% endif %}
+
+ {% if somevar is None %}
+ This appears if somevar is None, or if somevar is not found in the context.
{% endif %}
``is not`` operator
@@ -532,11 +536,16 @@ Object identity. Tests if two values are the same object. Example::
.. versionadded:: 1.10
-Tests if two values are not the same object. This is the negation of
-the ``is`` operator. Example::
+Negated object identity. Tests if two values are not the same object. This is
+the negation of the ``is`` operator. Example::
+
+ {% if somevar is not True %}
+ This appears if somevar is not True, or if somevar is not found in the
+ context.
+ {% endif %}
- {% if value is not None %}
- This will output if and only if value is not None.
+ {% if somevar is not None %}
+ This appears if and only if somevar is not None.
{% endif %}
Filters