I have the following velocity template.
<tr>
<td>Address 1*</td>
<td>:<b> $currentAddressAddress1 </b> </td>
</tr>
#if ($currentAddressAddress2)
<tr>
<td>Address 2</td>
<td>:<b> $!currentAddressAddress2 </b> </td>
</tr>
#end
The second row should be displayed only if currentAddressAddress2
has value in it. Otherwise it should not display. But I am getting the following as output
Address 1* : RJ street
Address 2 :
But I want ,
Address 1* : RJ street
only