{% for form in forms %} {% set modalId = (form.vars.value.id == null) ? '0' : form.vars.value.id %} {% endfor %}