Next: Evaluation Macros, Previous: Redefined M4 Macros, Up: Programming in M4sugar
The following macros implement loops in M4.
Loop over the numeric values between first and last including bounds by increments of step. For each iteration, expand expression with the numeric value assigned to var. If step is omitted, it defaults to `1' or `-1' depending on the order of the limits. If given, step has to match this order.