Click to See Complete Forum and Search --> : if statement help


geuis
10-13-2003, 09:45 AM
I want to write an if statement that does like:

if (a == 0 OR a == 1)
{
}

I've forgotten how to write the OR statement in javascript.

Khalid Ali
10-13-2003, 10:02 AM
if(a==0 || a==1){

}

go to

http://devedge.netscape.com

and try reading their docs on JS