# Variant metafield

> The values of `if-variant-metafield` inside `smootify-product` or `smootify-variant`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/conditions/variant-metafield  
Updated: 2026-10-13

## Where it can go

- **Inside any of:** [`smootify-product`](https://www.smootify.io/docs/reference/elements/smootify-product), [`smootify-variant`](https://www.smootify.io/docs/reference/elements/smootify-variant).

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `if-variant-metafield="key"` | If it has a value | — |
| `unless-variant-metafield="key"` | Unless it has a value | — |
| `data-check-value="value to match"` | Equal to | with [if-variant-metafield], [unless-variant-metafield] |
| `namespace="custom"` | Namespace | with [if-variant-metafield], [unless-variant-metafield] |
