Craft CMS V2.
Comment Plugin: verbb comment
<ul>
{% nav comment in comments %}
{% if comment.isFlagged() == false %}
<li>
{% include '_forms/templates/comment-' ~ comment.status %}
{% include '_forms/templates/form' %}
{% ifchildren %}
<ul class="child">
{% children %}
</ul>
{% endifchildren %}
</li>
{% endif %}
{% endnav %}
</ul>
The above code creates this error:
Unexpected "ifchildren" tag (expecting closing tag for the "if" tag)
So, How can I use if/else
condition inside the nav
tag to hide flagged comment including it's children.