# Collection metafield

> The values of `if-collection-metafield` inside `smootify-collection`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/conditions/collection-metafield  
Updated: 2026-11-26

## Where it can go

- **Inside** [`smootify-collection`](https://www.smootify.io/docs/reference/elements/smootify-collection).

## Values

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