{% if ap.iso_thread_id %}{% set current_type = "iso_thread" %} {% elif ap.unc_thread_id %}{% set current_type = "unc_thread" %} {% elif ap.clamp_connection_id %}{% set current_type = "clamp_connection" %} {% elif ap.static_connection_id %}{% set current_type = "static_connection" %} {% else %}{% set current_type = "" %}{% endif %}