How do you distinguish between numbers that are add and even in javascript? i searched a whole jscript book and web for it but couldn't find any info.
hrethan
12-28-2006, 04:08 PM
I assume you mean odd and even. Check out the modulus operator %. You should be able to do something like $number % 2 == 0 (if true, even, if not, false). HTH.