基本にある条件に、除外する条件を追加する場合の記述について

Takase 様

ご教授をありがとうございます。

足らない情報の中、本当にありがとうございます。

  1. 商品グリッドに表示したいと思っております。

  2. (在庫数の合わせた文言の出力)実際のコードは以下の通りです。

{% if product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity <= 0 %}
        {{ 'products.product.out_of_stock' | t }}

    {% elsif product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity <= 5 %}
        {{ 'products.product.low_stock_custom' | t }}

    {% elsif product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity >= 6 %}
        {{ 'products.product.in_stock' | t }}

    {% endif %}

もし可能でしたら、もう一度お願い致します。