I have script
<script type="text/javascript">
a = eval("dog!='cat'");
document.write(a);
</script>
It give's "dog is not defined".But i want true/false. If i put,
<script type="text/javascript">
a = eval("'dog'!='cat'");
document.write(a);
</script>
It works. But i cannot put quotes to dog because condition dynamically generated, can any one suggest any other way to do it. Here cat have quotes,but dog don't have the quotes.