At 1/21/08, you wrote:
>Can a for loop in Jmol take two variables, as follows?
>
>    for ( var i = -9, j = 2; i < -4.0; i = i + 0.2, j = j + 1 )
>
>So far I have not had success, j seems to have no value where as i is
>working fine.

What would be wrong with this:

var j = 2;
for (var i = -9; i < -4.0; i = i + 0.2)
{
   j = j + 1;
   // do your work here
}

By the way, in C and javascript, these three are equivalent (not sure 
about jmol scripting)

j = j + 1;
j += 1;
j++;

-Eric 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to