Views footer include twig Is there any way to include an if condition in views footer. I have to check the total rows

{% if [view:total-rows]  &gt; 6 %}
&lt;div class="btn"&gt;View AllEvents&lt;/div&gt;
{% endif %}


But this is not working.
What is the name of your template file? Depending on what template you use, 

{% if view.total_rows &gt; 6 %}
  &lt;div ...
{% endif %}


should work.