Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Conditionals: How to us OR


Message #1 by anne.do@c... on Wed, 18 Dec 2002 15:20:36 -0500
> -----Message d'origine-----
> De : Colin Horne [mailto:colinhorne@b...]
> Envoy=C3=A9 : jeudi 19 d=C3=A9cembre 2002 13:14
> =C3=80 : javascript
> Objet : [javascript] RE: Conditionals: How to us OR
>
>
> hey
>
> || =3D or
> ie
> if (x=3D5) || (y=3D5)
> {/*do stuff*/}

	Don't forget the outermost brackets :

if ((x=3D5) || (y=3D5))

  Return to Index