On 07/07/2014 10:01 PM, Ron Mignery wrote: > *Why does the following:* > print _version > a="abcd" > x="b" > print ((a.find(x) > 0) and (x.size = 1)) > print ((x.size = 1) and (a.find(x) > 0)) > x="x" > print ((a.find(x) > 0) and (x.size = 1)) > print ((x.size = 1) and (a.find(x) > 0)) > x="bc" > print ((a.find(x) > 0) and (x.size = 1)) > print ((x.size = 1) and (a.find(x) > 0)) > x="bx" > print ((a.find(x) > 0) and (x.size = 1)) > print ((x.size = 1) and (a.find(x) > 0)) > > *produce this?* > > 1400013 > true > true > false > false > false > script ERROR: invalid argument > ---- > print ( ( x . size = 1 ) and ( a . find ( x ) >> > << 0 ) ) > In Version 14.0.5 it seems to work: 1400005 true true false false false false false false
So it looks like a bug introduced later. It already doesn't work in 14.1.16 (http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm). Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: rhue...@fli-leibniz.de Website: http://www.fli-leibniz.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Dennys Klein VAT No: DE 153 925 464 Register of Associations: No. 230296, Amtsgericht Jena Tax Number: 162/141/08228 ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users