I'm not sure if I can explain this correctly, but here it is. Say I have this:
List = {
0: {
payment: 1,
value: 10
},
1: {
payment: 2,
value: 15
},
2: {
payment: 1,
value: 12
},
3: {
payment: 2,
value: 13
}
}
How to sum the values for two payments separately? aka sumforpayment1= 10 +12andsumforpayment2= 15 + 13
razzv source
share