I was collect data an array with 2 coloumn look like this
---------------
Order | Value
---------------
order1 | 45
order2 | 70
order1 | 85
order2 | 32
--------------
How to get all value in the array based conditional where order= order1 only and sum them?
Thank you,
Whereand a call toSum.) It's not really clear why you're using a 2D array rather than a type which encapsulates the order name and value, mind you. It's also not clear whether this is a rectangular array or a jagged array. A minimal reproducible example would make it easier to help you.