Range length or last element?

Pseudo:

$list := (where .Site.Pages "Section" "blablabla")
$len := (len $list)

range $index, $element := $list
if eq (add $index 1) $len
1 Like