survey_is_stop
Check if there is a ‘stop’ question in list of (survey) blocks
The result is true when the list contains a survey_stop block or a survey
page-options block marked as a stop page.
For example:
{% if blocks|survey_is_stop %}This page ends the survey.{% endif %}