Re: Local Variables

*To*: mathgroup at smc.vnet.net*Subject*: [mg20425] Re: Local Variables*From*: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>*Date*: Tue, 26 Oct 1999 00:33:09 -0400*Organization*: Universitaet Leipzig*References*: <7u7tvt$p6r@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Hi Eric, the double loop: For[i = 1, i < 4, i++, For[j = i + 1, j < 4, j++, Print[i, " ", j]]] does the expected. Can you describe your problem in more detail ? Jens Eric Spahr wrote: > > I am most confused... Nested Sums seem to be able to > refer to their > predecessors' iterators as in: > " Sum[DoSomething, {i, 1, whatever},{j, > j=i+1,someotherwhatever} > ]"... but: > "For[i = 1, i < whatever, i++, > For[j = 1, j < someotherwhatever, j++, > Do Something[[i]][[j]] > ] > ]" doesn't. > What am I missing? > Thanks in advance.