Tracking progress through a loop withindex_var
To keep track of where you are in a loop, use theindex_vardirective withloop_control. This directive specifies a variable name to contain the current loop index.