{% if error is defined and errormsg is defined%} {% if error == true %} {% endif %} {% endif %} {% if success is defined and successmsg is defined %} {% if success == true %} {% endif %} {% endif %}