A way to get the sum of all elements in a single array?

What would be the best method to get the sum of integer or float values in a single array? I should also mention that the index numbers and element values in my array are not set in stone and can change.

I want to easily be able to add more elements or remove elements and adjust their values while still being able to find the sum of all the elements, preferably without copying and pasting a bunch of nodes for each element.

Any thoughts? Thanks!

Yeah that works! Thanks! :slight_smile:

Would this work for you?

http://puu.sh/eNEUv/3f288d5204.png

Each time I change a value in the array (in details panel) it goes up. So the summary is not right, it’s higher than it should. Meaning I have to press reset to change it back to the actual value. Anyway way to do this (pressing reset) automatic? I’m trying to find the answer now.

You can try to reset Sum variable in the construction script function

I have no idea where XD

Figured it out :wink: