I am trying to dynamically display data if it is not empty and set the header to empty if there is no data for that item.
Below is my transformation code. I am trying to hide any h5 headings that don't have data.
For example, if my CurrentDocument.EVAl("Client") comes back empty I would like to hide the entire class "client-heading". I assume it has something to do with !IfEmpty.
<div class="left-data small-6 medium-3 large-3 columns">
<div class="location-heading">
<h5 class="data-heading">Location:</h5>
<h5>{% CurrentDocument.GetValue("City") #%}, {% CurrentDocument.GetValue("State") #%}</h5>
</div>
<div class="client-heading">
<h5 class="data-heading">Client:</h5>
<h5>{% CurrentDocument.EVAL("Client") #%}</h5>
</div>
<div class="year-heading">
<h5 class="data-heading">Year Completed:</h5>
<h5>{% CurrentDocument.GetValue("yearCompleted") #%}</h5>
</div>