The following is the antlr string template code which I am struggling over. I have a property Item.AmountPaid which might have data (or) could be blank sometimes. So when it has no data I should show Disabled TR and hide Enabled TR and vice-versa. The problem I am facing is whether the property is having data or not, only IF statement is executing every time. Please let me know your valuable suggestions. Thank You for your help!
$
orders: { Item|
$if(Item.AmountPaid)$
<tr class="Enabled">
<td>$Item.AmountPaid$</td>
<td>$Item.Name$</td>
<td>$Item.City$</td>
</tr>
$else$
<tr class="Disabled">
<td>$Item.AmountPaid$</td>
<td>$Item.Name$</td>
<td>$Item.City$</td>
</tr>
$endif$
}
$