javascript if statement
Posted
by mike
on Stack Overflow
See other posts from Stack Overflow
or by mike
Published on 2010-06-17T22:50:32Z
Indexed on
2010/06/17
22:53 UTC
Read the original article
Hit count: 119
JavaScript
Hi,
In javascript, how can I test 2 "sets" of conditions in one if statement? example:
if ((a == 'someValue' && b == 'someValue') || (c == 'someValue' && d == 'someValue')) {
// do something
}
Thanks!
© Stack Overflow or respective owner