{% for conf in cve.json.configurations.nodes %}

Configuration {{ loop.index }} (hide)

{% if conf.operator == 'AND'%} {% set children = conf.children %} {% else %} {% set children = [conf] %} {% endif %} {% if children|length > 1 %} {% endif %}
AND {% for child in children %} {% for cpe in child.cpe_match %} {% if loop.index == 1 and child.cpe_match|length > 1 %} {% endif %} {% endfor %}
OR{{ cpe.cpe23Uri }}
{% endfor %}

{% endfor %}