{% if tdata["error_msgs"]|length>0 %} {{tdata["error_msgs"]}} {% else %} OK {% endif %}