contains - Liquid Filter Reference
On this page
Description
Returns true if the list contains the supplied item
| Property | Value |
|---|---|
| Return Type | boolean |
| Category | lists |
Examples
```liquid
{{ numbers | contains: 5 }} ```
Output: true
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.