Compare variable values using javascript
Hi,
I am trying to use "if" condition to compare values of 2 variables that I am getting from SOAP call.
<% if(rtEvent.ctx.Consumer.oldid==rtEvent.ctx.Consumer.newid) { %>here<% } else { %>there<% } %>
I have checked in RT instance and found that value of "oldid" and "newid" are same but it is still going in "else" condition.
Can anyone please tell me what is wrong?
I have used "if" condition in the past but just to check variables's value against static value and this has worked.
e.g. <% if(rtEvent.ctx.Consumer.oldid=="correct") { %>here<% } else { %>there<% } %>
Thanks,
Vinay