mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 07:05:12 -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 %}
|
{% endif %}
|
||||||
|
|
||||||
# array = 1,2,3
|
# array = 1,2,3
|
||||||
{% if array includes 2 %}
|
{% if array contains 2 %}
|
||||||
array includes 2
|
array includes 2
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# string = 'hello world'
|
# string = 'hello world'
|
||||||
{% if string includes 'hello' %}
|
{% if string contains 'hello' %}
|
||||||
string includes 'hello'
|
string includes 'hello'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</pre>
|
</pre>
|
||||||
|
|||||||
Reference in New Issue
Block a user