On Thu, 30 Sep 2010, Sven Schreiber wrote:
this is a feature request for gretl 2.0:
Even simple expressions aren't possible in loop conditions, for example:
"loop for i=1..p-1"
doesn't work, which inflates the trivial LOCs needed in gretl scripts.
Yes, that could be supported. In the meantime, you can use a
proper "for" loop if you want parsing of the conditions:
loop for (i=1; i<=p-1; i++)
See chapter 9 of the User's Guide. Also note that the syntax you
give above, "loop for i=1..p-1" is actually a (tolerated) error:
there shouldn't be any "for" in what the Guide calls an index
loop.
Allin