Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Nested For Loops

  • To: mathgroup at
  • Subject: [mg15718] Re: [mg15699] Nested For Loops
  • From: Jurgen Tischer <jtischer at>
  • Date: Fri, 5 Feb 1999 03:42:16 -0500 (EST)
  • Organization: Universidad del Valle
  • References: <>
  • Sender: owner-wri-mathgroup at

I'm afraid without context there is no good answer. Of course one could

Do[something here,{t,r1,r2,step},{z,r3,r4,step1}]

but I bet this is not the true Mathematica way to handle your


aranisin wrote:
> Hi,
> I am wondering how to write a nested iterative loop in Mathematica.
> I want the equivalent of:
> For [t=r1; t<r2, t=r1+step,
>     For [z =r3; z< r4, z=r3+step1,
>         Do something here
>         ]
>     ]
> Thanks for your help.
> -Arani

  • Prev by Date: Points on MultipleListPlots
  • Next by Date: BracketingBar for output
  • Previous by thread: Nested For Loops
  • Next by thread: Re: Nested For Loops