Hey there!
I was wondering what the simplest way to for loop through all the instances of a certain object and add together all of their values for the instance variable "amount"
For example:
Object1:
(Instance Variable) Amount: 2
Object2:
(Instance Variable) Amount:7
Total Amount: 9
Thanks for any help you can provide!