I am trying to make a simple accumulator within a foreach
in apache velocity
and I would not be accumulating the values .. I did not find any documentation about the scopes
that manages velocity
.. some example of how to do this in velocity
?
#set( $descuento = 0 )
#foreach($item in $items)
$descuento = $descuento+$item.cantidad
#end