TWIG if/else to filter through templates I am trying to write a TWIG else/if statement that loops through four different templates based on the number of customers are chosen from a list. So if a designer chooses 1 customer a certain template is used to create that view, and if they choose 3 customers a different template is used.

{% if content.field_featured_customers|length == 1 %}
{% include "node--customer--featured-full.hmtl.twig" with content.field_featured_customers %}
{% elseif content.field_featured_customers|length == 2 %}
{% include "node--customer--featured-split.html.twig" with content.field_featured_customers %}
{% elseif content.field_featured_customers|length == 3 %}
{% include "node--customer--featured-3block.html.twig" with content.field_featured_customers %}
{% else %}
{% include "node--customer--featured-carousel.html.twig" with content.field_featured_customers %}
{% endif %}


This is what I have tried so far, but nothing is rendered. I have created templates for all of the different views I am trying to display. Here is an example for the featured-full.html.twig 

&lt;div class="row"&gt;
&lt;div class="columns small-12 medium-4"&gt;
{{ content.field_logo }}
&lt;/div&gt;
&lt;div class="small-12 medium-8"&gt;
&lt;h3&gt;{{ content.field_comapny_name }}&lt;/h3&gt;
&lt;p&gt;{{ content.field_description }}&lt;/p&gt;
&lt;a class="button" href="#"&gt;Learn More&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;


Am I doing something wrong in the if/else statement, do I need to create different views, or is there something in the theme that I need to include?
If not rendered at all, for sure, Twig not found your template file.

There is a var that store the base dir of your theme, just use it to define where is your template file.

Twig file:

{% include "#{directory}/templates/node/node--customer--featured-full.hmtl.twig" %}