On Thu, 11 Dec 2008, Bart C. Wise wrote:

When I run the code below (via minimals), I get the following error, why?

\newcount\startcnt
\newcount\tempcnta

\def\myloop#1{%
 \message{enter}
 \tempcnta=\the\startcnt%
 \loop
   \message{loop}
   \advance \tempcnta by 1
   \ifnum\tempcnta>#1\else \repeat\fi
 \message{exit}
}

\starttext
\startcnt=1800
\myloop{2008}
\stoptext

Do you know of \dostepwiserecurse{from}{to}{step}{body}. For example,

\starttext
\dostepwiserecurse{1800}{2008}{1}{We are at \recurselevel \endgraf}
\stoptext

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to