title: Displaying icons using php IF
body: <p>Just wondering, I'm creating a multi-vendor website. So far it has all been going well, however we have a need to display icons as badges if a field contains data. </p>
  
  <p>Here is an example of the code:</p>
  
  <pre><code>&lt;li class="location clearfix"&gt;
          &lt;div class="pull-left"&gt;
              &lt;span&gt;&lt;i class="fa fa-briefcase"&gt;&lt;/i&gt;&lt;?php _e('abn ',) ?&gt;&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class="pull-right"&gt;
              &lt;?php echo $abn; ?&gt;
          &lt;/div&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>When displaying the field <code>abn</code> it appears fine, although we are wanting an icon displayed if <code>abn</code> contains data. We are needing the Echo to be an IF statement, that if the profile ``abn``` field contains data, that an icon is displayed. </p>
  
  <p>Just wondering, is there any examples that anyone would have using an existing script? </p>
  
  <p>Thanks for helping! </p>