{"title":"last - Liquid Filter Reference","slug":"last-filter-reference","url":"https://support.storeconnect.com/articles/last-filter-reference","url_markdown":"https://support.storeconnect.com/articles/last-filter-reference.md","subtitle":null,"summary":"Returns the final item from a list. Use `last` to access the most recent or trailing element without iterating the entire collection.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, last, lists, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nReturns the last item of an list.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | any |\n| **Category** | lists |\n\n## Examples\n\n\n```liquid\n\n{{ \"Mary had a little lamb.\" | split: \" \" | last }}\n```\n\n\n**Output:** `lamb.`\n\n\n```liquid\n\n{{ an_list | last }}\n```\n\n\n**Output:** `fire`"}