Loading docs/ref/templates/builtins.txt +9 −9 Original line number Diff line number Diff line Loading @@ -515,15 +515,6 @@ of how ``x in y`` will be interpreted:: Not contained within. This is the negation of the ``in`` operator. The comparison operators cannot be 'chained' like in Python or in mathematical notation. For example, instead of using:: {% if a > b > c %} (WRONG) you should use:: {% if a > b and b > c %} ``is`` operator ^^^^^^^^^^^^^^^ Loading Loading @@ -573,6 +564,15 @@ If you need different precedence, you will need to use nested :ttag:`if` tags. Sometimes that is better for clarity anyway, for the sake of those who do not know the precedence rules. The comparison operators cannot be 'chained' like in Python or in mathematical notation. For example, instead of using:: {% if a > b > c %} (WRONG) you should use:: {% if a > b and b > c %} ``ifequal`` and ``ifnotequal`` ------------------------------ Loading Loading
docs/ref/templates/builtins.txt +9 −9 Original line number Diff line number Diff line Loading @@ -515,15 +515,6 @@ of how ``x in y`` will be interpreted:: Not contained within. This is the negation of the ``in`` operator. The comparison operators cannot be 'chained' like in Python or in mathematical notation. For example, instead of using:: {% if a > b > c %} (WRONG) you should use:: {% if a > b and b > c %} ``is`` operator ^^^^^^^^^^^^^^^ Loading Loading @@ -573,6 +564,15 @@ If you need different precedence, you will need to use nested :ttag:`if` tags. Sometimes that is better for clarity anyway, for the sake of those who do not know the precedence rules. The comparison operators cannot be 'chained' like in Python or in mathematical notation. For example, instead of using:: {% if a > b > c %} (WRONG) you should use:: {% if a > b and b > c %} ``ifequal`` and ``ifnotequal`` ------------------------------ Loading