Print something in a tlp file if a field isnt empty I need to print some html in a node tpl file if a certain field is not empty. The follwing is giving me a white screen: 

&lt;?php if (!empty($content['field_hotel_sat_nav'])) {
                        print '&lt;h1&gt;The field is not empty&lt;/h1&gt;'
            }
?&gt;
Try this code:

&lt;?php 
  if ($content['field_hotel_sat_nav'] != '') { 

    //Do something 

  }
?&gt;