Hiding empty fields (IF ELSE)
The Smarty template engine has made life very easy for us. Using the IF statement we can check IF a field has a value.
In this case IF actually means "if the field has a value than show .... whatever is between the IF tags."
The basic Smarty syntax is: