Trying to hide an accordion row based on blank product metafield content

Hi, I have a product page using Vessel theme, it has an accordion which pulls in dynamic data supplied by 3 x metafields i have pinned to products, kye_ingredients, sensory and other_info. I would like to hide an accordion row if the metafield content is blank. I have tried writing a conditional statement e.g.

{% if product.metafields.custom.value != blank %}

{% endif %}

But can not wrap anything in the accordion_row.liquid as it will hide all rows if any of the three metafields content is missing, not just the specific row relating to the blank field. Where do I put my condiotnal statement, and i is correct? Help!

Hi @jimPlus Your using a hardcoded value but you describe using a dynamic source in the settings in the visual theme editor.
So your ignoring what’s being used in favor of an expectation.
You need to find what is actually being looped or referenced, and if that has a blank ( no value) property then check that.
:technologist: In the case of blocks this can be a problem depending on scope of the settings.

Check your theme if it’s horizon based and it’s accordion is similar.
Then reference code from the github https://github.com/Shopify/horizon