How to get metafield definition name

How to get metafield definition name

Dima34
Shopify Partner
12 0 2

Dima34_0-1699468037044.png

How can I get metafield definition? I use Mixed reference and i want make like
{% if product.metafields.value.definition == "Breed" %}

   *do something*

{% if product.metafields.value.definition == "Breed" %}

     *do something*
Replies 3 (3)

maxdanko
Shopify Partner
29 3 6

Liam
Shopify Staff
2873 312 821

Hi Dima34,

 

Are you looking to execute this if statement on a product page?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Dima34
Shopify Partner
12 0 2

Yeah, on it