Seven new Liquid filters make type conversion explicit. Values from CSV files, metafields, webhooks and API responses often arrive as text — now you can turn them into exactly the type you need, without
| plus: 0
workarounds.
  • integer
    —
    "00123" | integer
    →
    123
  • decimal
    —
    "12.50" | decimal
    →
    12.5
  • string
    — keep IDs, SKUs and postal codes as text
  • boolean
    —
    "false"
    ,
    "0"
    and
    "no"
    become a real
    false
  • is_number
    — check a value before converting it
  • increment
    /
    decrement
    — shorthand for
    plus: 1
    and
    minus: 1
A few things worth knowing
  • integer
    drops the decimal part (
    "12.9"
    →
    12
    ) — use
    round
    first if you want rounding.
  • decimal
    keeps full precision. Chain
    | round: 2
    for a number, or use
    to_fixed: 2
    for text like
    "12.50"
    .
  • string
    is ideal inside
    {% json %}
    blocks:
    {{ order.id | string | json }}
    always sends a quoted ID — no more hand-wrapping values in quotes.
  • boolean
    fixes a classic Liquid trap:
    {% if row.active %}
    is true for the text
    "false"
    .
    {% if row.active | boolean %}
    isn't.
  • increment
    and
    decrement
    return a new value. The
    {% increment %}
    tag still changes the variable in place.
  • The
    AI assistant
    knows the new filters and uses them when it processes uploaded files.
Full reference in the docs:
integer
·
decimal
·
string
·
boolean
·
is_number
·
increment
·
decrement