--- url: https://docs.youcan.shop/changelog/liquid-loops-and-filters.md --- `for` loops take an `else` block, the `sum` filter adds numbers, and `json` prints numbers, booleans and `nil` as JSON values. *** # Tags * A `for` loop renders its `else` block when it has no items, also after an `offset` that skips all items and for a range such as `(3..1)`. See [for](/themes/tags/for#default-for-empty-arrays). * `cycle` values can contain a colon, for example `{% cycle '10:00', '14:00' %}`. See [cycle](/themes/tags/cycle#values-with-a-colon). * `if` and `unless` compare strings that contain `and` or `or`, for example `{% if title == 'art and design' %}`. # Filters * `sum` adds the numbers in an array, or the values of one property. See [sum](/themes/filters/arrays/sum). * `default` without an argument returns an empty string for `nil`, `false` and empty strings. See [default](/themes/filters/format/default). * `json` prints the JSON of a value directly. Numbers, booleans and `nil` print without quotes, so the output works inside a `