[Javascript] (no subject)

Scott Hamm linuxgold at gmail.com
Wed Nov 2 12:32:52 CST 2005


DANG!!
'If' was the problem!! *bangs his head on desk*
Thanks all and my apologies for that *tiny* error.

*notes to self* case sensivie..

On 11/2/05, Hassan Schroeder <hassan at webtuitive.com> wrote:
> 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.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>


--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



More information about the Javascript mailing list