Looping Constructs (DEFINE-!ENDDEFINE command)

Looping constructs accomplish repetitive tasks. Loops can be nested to whatever depth is required, but loops cannot be crossed. The macro facility has two looping constructs: the index loop (DO loop) and the list-processing loop (DO IN loop).

  • When a macro is expanded, looping constructs are interpreted after arguments are substituted and functions are executed.