[Date Index] [Thread Index] [Author Index]
Re: Local Variables in Do
On Wednesday, March 2, 2011 9:34:34 AM UTC, DrMajorBob wrote: > No; not true. > > Bobby > > On Tue, 01 Mar 2011 04:23:00 -0600, adamimos <ashai at caltech.edu> wrote: > > > I hate to have such a newbie question, but I'm new to programming in > > Mathematica. I have nested loops, and I'd like to change a global > > variable inside of the loop. It seems that Mathematica makes all > > variables defined inside of Do functions local, is this true? > > > > > -- > DrMajorBob at yahoo.com It is true if you forget the semicolon.