Axel: Here's a hint for you.
So look at your code, just the first few lines:
var weight, waist, bodyfat, total bodyfat
if ( (weight >=0) , (waist >=0) , (total bodyfat >=0) )
At the point were you are trying to do weight >= 0
what do you think the value of weight
HINT: You never defined a value. So it has no value. (Or, rather, it has a value of null
, but that is useless to you.)
Same is, of course, true for waist
The case of total bodyFat
is more egregious. You have a space in the middle of what I *assume* is supposed to be totalbodyFat
Mind you, these are just the *beginning* of your errors.
Just for one more example (and there are others!) you do
weight = Math.round(weightBox x 1.082) + 94.42
but you have never defined a variable named weightBox
so the value of *THAT* variable is null
and you can't then multiply it by anything.
In short, what you have there is pretty much total hash.
Start all over again.