if you mean the exclusive or statement, you can try something like this, although i'm not sure of its range of cross-browser support...
Code:
var x = true;
var y = false;
alert(x ^ y);
var x = false;
var y = true;
alert(x ^ y);
var x = true;
var y = true;
alert(x ^ y);
var x = false;
var y = false;
alert(x ^ y);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.