THE SUMMARY:
I have three value numbers for an array. If the total addition of the array's elements is greater than 0, I need to display "el funcionamiento no es infinito", otherwise "es infinito".
It seems that it's not working because I believe I am not calculating all elements in the array danio_Total.
BELOW IS THE CODE. THANK YOU!
var checkFunctioningTime = function(i) {
if (danio_Total.value > 0) {
document.write("el funcionamiento no es infinito");
} else {
document.write("El tiempo de funcionamiento es infinito");
}
}