Bob,
I think that the Jmol.evaluate below is returning a string - not a boolean. Has
that always been the behavior? I actually never used this comparison before:
function compSmi(key, ans) {
return Jmol.evaluate(jmolApplet0, "'" + key +
"'.find('SMILES','" + ans + "') > 0");
}
After some really weird logic behavior, I finally took a look at this:
alert(Jmol.evaluate(jmolApplet0, "'" + key + "'.find('SMILES','" + ans + "') >
0") == "false");
With key and ans as different SMILES, the alert was true.
14.1.12_2014.03.21
Otis
--
Otis Rothenberger
[email protected]
http://chemagic.com
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users