Bart C. Wise wrote:
On Thursday 11 December 2008 07:17:51 am Hans Hagen wrote:
Zhichu Chen wrote:
Hi Bart
On Thu, Dec 11, 2008 at 9:50 PM, Bart C. Wise
<[EMAIL PROTECTED]> wrote:
When I run the code below (via minimals), I get the following error,
why?
enter loop
! Extra \else.
\@@plniterate ...\expandafter \@@plniterate \else
\fi
\myloop ...by 1 \ifnum \tempcnta >#1\else \repeat
I think the loop structure should be:
\loop ... \if... ... \repeat
just use:
\doloop {
\ifwhateveryoulike
\exitloop
\fi
Hans,
Thanks, that works. But shouldn't the other one work as well? Is there
something wrong with the syntax?
you cannot use else in plain's loop macro; nor can you use it nested;
it's just the way the plain loop macro is defined
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________