Re: Check null or 0




staeri@xxxxxxxxx wrote:
I'm using the following code to create a sum:

forecast = forecast + eval(f[i].value);

The use of eval is most often misused and unnecessary.

Try the following to create your sum:

forecast += +f[i].value;

.