Liquid Filter Reference for last - v0.9.5

Filter Name last
Group Arrays
Version 0.9.5

Description

Returns the last item of an array.

Examples

{{ "Mary had a little lamb." | split: " " | last }}
lamb.
{% assign an_array = "earth, water, air, fire" | split: ", " %}

{{ an_array | last }}
fire

Back to Filter List

Back to Liquid Reference for 0.9.5

 

 
Back to Documentation