--- title: "Liquid filters: find_index" description: Returns the index of the first item in an array with a specific property value. api_name: liquid source_url: html: https://shopify.dev/docs/api/liquid/filters/find_index md: https://shopify.dev/docs/api/liquid/filters/find_index.md --- # find\_​index ```oobleck array | find_index: string, string ``` returns [number](https://shopify.dev/docs/api/liquid/basics#number) Returns the index of the first item in an array with a specific property value. This requires you to provide both the property name and the associated value. ```liquid {% assign index = collection.products | find_index: 'vendor', "Polina's Potent Potions" %} {{ index }} ``` ## Output ```html 0 ``` ### Returns `nil` when no items match the specified property value. ```liquid {% assign index = collection.products | find_index: 'vendor', "Polina's Potions" %} {{ index | default: "No index found" }} ``` ## Output ```html No index found ```