I need to compare four variables.if any two variables are same i need show an alert. i did like the following way.
var a =1;
var b =2;
var c =3;
var d =4;
if((a==b)||(a==c)||(a==d)||(b==c)||(b==d)||(c==d)){
alert("Value is same, Please change the value");
return false;
}
Is that possible to reduce the expression to one condition instant of checking all the variables separately.Kindly advice ... TnQ in advance.