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
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 -----------------------------------------------------------------