Filter to the last element
To access the last element of a list, assign a negative index
[i=-1]
as a filter.To access the second to last element, use
[i=-2]
.[
{ "name": "Inception", "year": 2010 },
{ "name": "Matrix", "year": 1999 },
{ "name": "BTTF", "year": 1985 }
]
Template
Result
The oldest movie was {d[i=-1].name}
The oldest movie was BTTF
Last modified 1yr ago