Local Variables in Do[]
- To: mathgroup at smc.vnet.net
- Subject: [mg116818] Local Variables in Do[]
- From: adamimos <ashai at caltech.edu>
- Date: Tue, 1 Mar 2011 05:23:00 -0500 (EST)
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?