That's it -- Thanks very much! I was stuck on that fact that somehow I was getting away with that in 11.6.rc16 and was focusing on more recent changes as being the culprit when in actually it was -- of course -- my own sloppiness... (and your improved parsing of all this is catching something I used to get away with)
Thanks very much, Bob -Tom On Tue, Dec 22, 2009 at 5:16 PM, Robert Hanson <[email protected]> wrote: > I'm sure you always needed parentheses around that clause on the outside: > > if (something) {then do this} > > just like JavaScript. > > > so in this case > > $ bigres=40 > $ if ({resno > bigres}.size > 3) {print {resno > bigres}.size} > 45 > > > On Tue, Dec 22, 2009 at 5:24 PM, Thomas Stout <[email protected]>wrote: > >> >> I'm hoping fresh eyes can spot my trouble here. I have a loop that cycles >> through a series of specific residues and selects out the one with the >> largest number of atoms. Under prior versions of Jmol (11.6.RC16), I could >> get away with the following syntax: >> >> if {(resno=bigres)}.size > 6 >> >> I'm adapting these scripts for version 11.8+ and currently working with >> version 11.9.11 and it does not like this at all. "Command expected" is the >> response. >> >> Is there another way of testing for the number of atoms in a residue >> number specified by my own variable? I'm testing within a larger selection, >> so I'd like to not lose that selection. >> >> Thanks -- I feel like I'm staring right at the solution and not seeing >> it..... >> -Tom >> >> PS - I can supply the larger script, but I believe that I have narrowed >> the problem down to this {(resno=variable)} construct.... >> "print bigres" reports a proper numerical value, etc >> >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Jmol-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> >> > > > -- > Robert M. Hanson > Professor of Chemistry > St. Olaf College > 1520 St. Olaf Ave. > Northfield, MN 55057 > http://www.stolaf.edu/people/hansonr > phone: 507-786-3107 > > > 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 > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Jmol-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jmol-users > >
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

