Issue with averaging list

I am attempting to average 3 different lists using 1 procedure with different inputs and it will not run, but gives no errors. Does anyone see any issues? (Procedure runs if i remove the inputs and place globals in directly)

You forgot to zero out the sum at the start of the average procedure.

Unfortunately that did not fix the issue, it still displays a value of 0 for the average.

You have wandered into the tricky realm of call by reference versus call by value.

If all you want is just to get the sum and average, and avoid a deep learning experience, I recommend the new list blocks


1 Like