I am adding the elements of a payload in Dataweave 1.0 as below :
%var summation =[[]]
summation :sum ((schemaInput map ($.BenefitLimit when $.BenefitLimit !="" otherwise (0 as :number)))) ,
Can anyone help me to replicate the same logic in Dataweave 2.0 ??
Thanks