Showing an item in the last paginated page

I am creating some posts with multipages and I would like to show a form only on the last page. I was reading about the Last option, but I am unsure how to use it in a condition (if/with). Any help is appreciated.

{{ if not $paginator.HasNext }}
    <!-- Your code here -->
    {{- end }}

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