Shopify / liquid

Liquid markup language. Safe, customer facing template language for flexible web apps.

Home Page:https://shopify.github.io/liquid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: logical operators for “where” filter

nikitaourazbaev opened this issue · comments

This would enable some powerful features which currently require doing a lot of looping or repetitive concat assignments.

For example:

assign articles_with_tag = blog.articles | where: 'tags' contains 'tag-1'

or

assign interactive_media = product.media | where: 'media_type', 'model' or 'video' or 'external_video'