How do I do this in a Smarty template:
If {contact.supplemental_address_1} is not empty then
{contact.supplemental_address_1}
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.
Sign up to join this community{capture assign=temp}{contact.supplemental_address_1}{/capture} {if $temp ne ""} {$temp}
{/if}
is what I do. I got the idea from the source referenced above. You also need to ensure that smarty is turned on in civicrm.settings.php
Found a whole bunch of examples - including an isset one in Example 7.15
A little cleaner approach
{if $contact.supplemental_address_1}{contact.supplemental_address_1}{/if}