Hello,
Please try following macro code instead:
{%
if (ShoppingCart.IsDiscountApplied)
{
if (UnitTotalDiscount > 0) {
"<td>" + UnitTotalDiscount.Format("{0:F}") + "</td>";
}
}
|(identity)GlobalAdministrator%}
It's always better to use standard if-else statement than ?: notation where you need to combine more than one condition.
Best regards,
Jan Hermann