Ejemplo
<script type="text/javascript">
Handlebars.registerHelper('realgiftCards', function(giftCards) {
var _giftCardValue = 0
giftCards.forEach((giftCardValue, giftCardKeys)=>{
_giftCardValue = _giftCardValue + (giftCardValue.value)
})
return (_giftCardValue * -1)
});
</script>
{{#compare paymentData.giftCards.length '>' 1}}
<tr>
<td valign="top" align="right" style="color:#242424;font-size:14px;">
Vale:
</td>
<td valign="top" align="right" style="text-align:left;font-size:14px;">
$ {{formatCurrency (realgiftCards paymentData.giftCards)}}
</td>
</tr>
{{/compare}}