{|SHOWIF|CONDITION}{/|SHOWIF|}
{|VANISHIF|CONDITION}{/|VANISHIF|}
You can control the display of entire parts of your report by using the {|SHOWIF|} (“show if”) and {|VANISHIF|} (“vanish if”).
Examples:
#display a 'no data' message when#the count of datapoints is 0
{|VANISHIF|DATATYPES.SHOW_DATATYPE.TOTAL_COUNT}
<div class='ui-state-highlight no-data'>
<p>No data was found to display</p>
</div>
{/|VANISHIF|}
#only display report if the
#count of datapoints is not 0
{|SHOWIF|DATATYPES.SHOW_DATATYPE.TOTAL_COUNT}
<!-- report content -->
{/|SHOWIF|}
{|CROSSTAB|}<div>
{|LOOP|CROSSTAB.YEAR(SORT=ORDER_NUM)}
#only display the table header
#the first time through the loop
{|SHOWIF|LOOP.ISFIRST}
<table class='data'>
<thead>
<tr>
<th>Name</th>
{|LOOP|YEAR.MONTH_OF_YEAR(SORT=ORDER_NUM)}
<th>{MONTH_OF_YEAR.NAME}</th>
{/|LOOP|}
</tr>
</thead>
<tbody>
{/|SHOWIF|}
<tr>
<th>{YEAR.NAME}</th>
{|LOOP|YEAR.MONTH_OF_YEAR}
<td>{COUNT(MONTH_OF_YEAR)}</td>
{/|LOOP|}
</tr>
#only display the table footer
#the last time through the loop
{|VANISHIF|LOOP.HASNEXT}
</tbody>
</table>
{/|LOOP|}
</div>
{/|CROSSTAB|}