Hi Allin, the boolean condition i<=l-1 works fine!
The problem seems to be solved. Cheers, Artur 2010/11/8 Allin Cottrell <cottrell(a)wfu.edu>: > On Mon, 8 Nov 2010, artur tarassow wrote: > >> I've got another issue with the "loop for" command. I attached a part >> of the code. The three loops do not seem to work for some reason. If I >> run the same procedure line by line everything works fine. > >> loop for (i=2; i=l-1; i+=1) #This loop does not work > > Do you really mean "i=l-1" for the second field in the "for" > construction here, and not "i<=l-1" (or "i<l")? > > The second field has the status of a boolean condition: the loop > continues so long as it evaluates as true, so for example > > loop for (i=3; i=6; i++) > > will never run. > > Allin > > _______________________________________________ > Gretl-users mailing list > Gretl-users(a)lists.wfu.edu > http://lists.wfu.edu/mailman/listinfo/gretl-users >