How do i check if its the first item in this range?

{{ range first 6 . }}

{{ end }}

{{ range $i, $e := first 6 . }}
{{ if eq $i 0 }}
First!
{{ end }}
{{ end }}
2 Likes

Thank you! That worked

1 Like

Great … curious, Amy Sheldon, is that a Big Band Theory reference?

Yup… You are right :slight_smile: Those are my favourite characters

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.