Difference between revisions of "Command/recursedepth"

From Wiki
Jump to navigation Jump to search
(looplevel --> recurselevel; ditto -depth; adjust example correspondingly.)
 
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>recursedepth</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 16:30, 11 November 2019

\recursedepth

Syntax (autogenerated)

\recursedepth


Syntax

\recursedepth

Description

The nesting depth in the case of nested \dorecurse, \dostepwiserecurse, and \doloop.

Example

\dorecurse{2}{
    \recursedepth.\recurselevel:\crlf
    ---\dorecurse{3}
        {\recursedepth.\recurselevel\ }
    \crlf
    ---\doloop
       {\recursedepth.\recurselevel\ 
        \ifnum \recurselevel=2 \exitloop \fi}
    \crlf
}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: