If statement not working for some reason
<p>Here's my code:</p>

<pre><code>alert ("Current: " + crmForm.all.new_currentdate.DataValue);
alert ("Previous value: " + crmForm.all.new_date.DataValue);

if(crmForm.all.new_currentdate.DataValue != crmForm.all.new_date.DataValue )
{
  crmForm.all.new_otherValue.DataValue  = null;
  alert("Nulling other value");
}
</code></pre>

<p>As you can see, I've put in alerts to check the values at the start, and they are the same. However, it is still going into the IF statement, and the 3rd alert (Nulling other value) gets displayed too. Any ideas? This is in MS Dynamics CRM.</p>

<p>Thanks</p>
