[Javascript] (no subject)

Hassan Schroeder hassan at webtuitive.com
Wed Nov 2 12:26:57 CST 2005


Scott Hamm wrote:
> Ok, here is the latest source so far, I was able to bring up "passed
> here, with value of 12." (6 kph and 6 kpp) but didn't bring up the
> next alert "Exceeding 8 hours total to use PTO" it should happen.
> 
> kpp = parseFloat(kpp);
> kph = parseFloat(kph);
> if(!isNaN(kpp) &&!isNaN(kph) )
> {
> 	ktot = kpp + kph;
> }
> alert("passed here, with value of " + ktot + ".")
> If(ktot>'8')

If this is a direct copy/paste, you have two problems:

1) the value 8 shouldn't be quoted (making it a string)
2) 'If' shouldn't be capitalized

-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.





More information about the Javascript mailing list