{{ record.islast }} – Check if Record is Last in List

Evaluates whether the current record is the last in the sequence being rendered. This is particularly useful for formatting output lists where a trailing character, such as a comma, is not required after the last item.

Basic usage:

{{ record.islast }}

Example:

{% if not record.islast %},{% endif %}

What are your feelings

Leave a Reply

Updated on January 9, 2025