javascript:if statement
<p>How to execute the if statement only when both the inputs are different not when both inputs are same.
suppose:</p>

<pre><code>var a=prompt("have Input","");
var b=prompt("have Input","");
if(a &amp;&amp; !b){alert("ok")}
else{"wrong"}
</code></pre>

<p>the above condition works when both the inputs are true ,when both the inputs are false and when <strong>a</strong> is true and <strong>b</strong> is false but if <strong>a</strong> is false and <strong>b</strong> is true the if statement dont get executed .How to solve this issue through if statement.What is the way to get my problem solved?</p>
