How to calculate the values of an array?

Check this:

I want to sum the “amount” value of each item in the array. The array limit will be 5 items, however there will not always be 5 items. In that case, I need to take the full value of it.

Community Page
Last updated: