{% when "hidden" %} {% if customer && element.dynamic-content == 'customer' %} {%- assign value = "{{customer.name}}" -%} {% endif %} {% if product && element.dynamic-content == 'product' %} {%- assign value = "{{product.title}}" -%} {% endif %}