Release / Version (push) Canceled after 0s
Release / CI (push) Canceled after 0s
Release / Prebuild (macos-latest) (push) Canceled after 0s
Release / Prebuild (ubuntu-24.04-arm) (push) Canceled after 0s
Release / Prebuild (ubuntu-latest) (push) Canceled after 0s
Release / Prebuild (windows-latest) (push) Canceled after 0s
Release / Tag and stage (push) Canceled after 0s
502 lines
8.6 KiB
Plaintext
502 lines
8.6 KiB
Plaintext
==================
|
|
If Basic
|
|
==================
|
|
|
|
{% if user.is_authenticated %}
|
|
Hi
|
|
{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier)
|
|
(attribute))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With Not
|
|
==================
|
|
|
|
{% if not done %}
|
|
working
|
|
{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With Elif And Else
|
|
==================
|
|
|
|
{% if count == 1 %}
|
|
one
|
|
{% elif count == 2 %}
|
|
two
|
|
{% else %}
|
|
other
|
|
{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(literal
|
|
(number))))))
|
|
(template
|
|
(content)))
|
|
(elif_block
|
|
(elif_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(literal
|
|
(number))))))
|
|
(template
|
|
(content)))
|
|
(else_block
|
|
(else_tag)
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With Elif
|
|
==================
|
|
|
|
{% if x %}a{% elif y %}b{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(elif_block
|
|
(elif_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With Else
|
|
==================
|
|
|
|
{% if x %}a{% else %}b{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(else_block
|
|
(else_tag)
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With An Elif Missing Its Condition
|
|
==================
|
|
|
|
{% if x %}a{% elif %}b{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)
|
|
(unexpected_tag)
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With An Elif After An Else
|
|
==================
|
|
|
|
{% if x %}a{% else %}b{% elif y %}c{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)
|
|
(unexpected_tag)
|
|
(content)))
|
|
(elif_block
|
|
(elif_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With Two Elses
|
|
==================
|
|
|
|
{% if x %}a{% else %}b{% else %}c{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(else_block
|
|
(else_tag)
|
|
(template
|
|
(content)
|
|
(unexpected_tag)
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With Complex Predicate
|
|
==================
|
|
|
|
{% if not done and count in valid_counts and status is not none or tags|length >= 3 %}
|
|
yes
|
|
{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier)))
|
|
(filter_expression
|
|
(filter)))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(literal
|
|
(number))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If Operator Adjacent To Value
|
|
:error
|
|
==================
|
|
|
|
{% if 1and 2 %}yes{% endif %}
|
|
|
|
---
|
|
|
|
==================
|
|
If Is Not None
|
|
==================
|
|
|
|
{% if status is not None %}yes{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(literal
|
|
(none))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If Is
|
|
==================
|
|
|
|
{% if x is y %}a{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If Is Not
|
|
==================
|
|
|
|
{% if x is not y %}a{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If Is Not Not
|
|
==================
|
|
|
|
{% if x is not not y %}a{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If With A Repeated Not
|
|
==================
|
|
|
|
{% if not not x %}a{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If Not Before A Name Beginning With In
|
|
==================
|
|
|
|
{% if not in_stock %}a{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|
|
|
|
==================
|
|
If Is Before A Name Beginning With Not
|
|
==================
|
|
|
|
{% if x is nothing %}a{% endif %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(if_group
|
|
(if_block
|
|
(if_tag
|
|
(predicate
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))
|
|
(binaryOperator)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier))))))
|
|
(template
|
|
(content)))
|
|
(endif_tag))
|
|
(content))
|