mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Migrated from liquid-for-designers v19
@@ -116,12 +116,12 @@ Liquid allows you to write simple expressions in the @if@ (and optionally, @else
|
||||
{% endif %}
|
||||
|
||||
# array = 1,2,3
|
||||
{% if array includes 2 %}
|
||||
{% if array contains 2 %}
|
||||
array includes 2
|
||||
{% endif %}
|
||||
|
||||
# string = 'hello world'
|
||||
{% if string includes 'hello' %}
|
||||
{% if string contains 'hello' %}
|
||||
string includes 'hello'
|
||||
{% endif %}
|
||||
</pre>
|
||||
|
||||
Reference in New Issue
Block a user