Basics: Data Types: Metafield

A metafield consists of a namespace, a key, a value. The namespace is used to group different metafields together. For example, another third-party Shopify app may specify its app name as the namespace.
A metafield value may be stored as a string or an integer. Smart Tags will automatically convert the value to the correct type.


Operators

Smart Tag supports the following operators for fields and values that are of Metafield type.


is equal to

Returns true if field value is equal to the input value.


is not equal to

Evaluates to true if field value is not equal to to the input value.


starts with

Evaluates to true if field value starts with to the input value.


ends with

Evaluates to true if field value ends with to the input value.


contains

Evaluates to true if field value contains to the input value.


matches

Evaluates to true if field value matches to the input value.


does not start with

Evaluates to true if field value does not start with to the input value.


does not end with

Evaluates to true if field value does not end with to the input value.


does not contain

Evaluates to true if field value does not contain to the input value.


does not match

Evaluates to true if field value does not match to the input value.


is greater than

Evaluates to true if field value is greater than to the input value.


is greater than or equal

Evaluates to true if field value is greater than or equal to the input value.


is lesser than

Evaluates to true if field value is lesser than to the input value.


is lesser than or equal

Evaluates to true if field value is lesser than or equal to the input value.


is within

Evaluates to true if field value is within to the input value.


is not within

Evaluates to true if field value is not within to the input value.