I am reading 3 values off a form on a webpage (all integers). These fields may or may not be filled in.
I want to add them together (field1 + field2 + field3 = total).
I have gotten this working fine excepting that if 1 of them is not filled in then the value comes through incorrectly.
I want to say "if the value is not a number then make it zero" so that nulls are treated as zero.
Is there a neat way to do this?