Use Jmol.evaluateVar instead.

On Mon, Apr 21, 2014 at 4:57 PM, Otis Rothenberger <[email protected]>wrote:

> 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
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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

Reply via email to