1. Home
  2. Liquid
  3. To integer

Convert string to an integer.

#liquid#filter
{{ "22" | to_integer }}
22
copy
Full Liquid cheatsheet