FOR MODULE - for.pm
The for module implements a simple for loop. Its file name is for.pm.

The for loop is similar in functionality to that of other programming languages such as Perl or or C. It has a single variable (a filepp macro) which is assigned a numerical value. This numerical value changes by a set increment on each iteration through the loop. The loop termiates when the value no longer passes a comparison test.

The for module implements the following keywords:

#for macro start compare end increment
    The #for keyword is functionally equivalent to the following Perl or C style loop: for(macro=start; macro compare end; macro+=increment) The #for keyword requires the following space separated parameters: macro : The name of the macro to which the for loop should assign its numerical value. start : The value macro should be assigned at the start of the loop. start should be a numerical value. compare : The comparison to make between the current value of macro and the value end to determine when the loop should terminate. Valid values for compare are <, >, >=, <=. end : the for loop will terminate when the test
      macro compare end fails. end should be a numerical value. increment : The value to increment macro on each iteration of the loop. At the end of each iteration the value of increment is added to the current value of macro. increment should be a numerical value.

#endfor
    The #endfor keyword is used to signify the end of the loop. Everything within the opening #for and the closing #endfor will be processed on each iteration of the loop.

Example usage: #for COUNTER 10 > 1 -2.5
  COUNTER #endfor In the above example COUNTER will be defined to have values 10, 7.5, 5 and 2.5 for each successive iteration through the loop. Nested loops are also possible, as is changing the value of the macro within the loop. start, end and increment should all be numerical values, however it is possible to use macros instead provided the macros are defined to have numerical values.