Showing Blog posts AND products in search

Thank you so much for explaining the logic for the search form @Arthur_Korniyen .

For some reason in my scenario i couldn’t use the “elsif” condition for article type so i end up with a double iteration like this:

{% if search.performed and grid_results == true %}
<div class="container container-v2 my-3 my-lg-5">
    <div class="row">
      {% for item in search.results %}
      	{% if item.object_type == 'article' %}
          {% include 'article-template' %}
      	{% endif %}
      {% endfor %}      
    </div>
</div>
{% endif %}

{% if search.performed and grid_results == true %}
<div class="container container-v2 my-3 my-lg-5">
    <div class="row">
      {% for product in search.results %}
      {% if product.object_type == 'product' %}
        <div class="col-md-3 col-sm-6 col-6">
          {% include 'product-item-v1' %}
        </div>
      {% endif %}
      {% endfor %}
    </div>
</div>
{% endif %}

However, i couldn`t have done this without your insight. Thank you