Next: , Previous: , Up: AutoGen Scheme Functions   [Contents][Index]


3.4.17 for-index - get current loop index

Usage: (for-index [ for_var ])
Returns the current index for the named FOR loop. If not named, then the index for the innermost loop. Outside of any FOR loop, it returns SCM_UNDEFINED, See FOR - Emit a template block multiple times.

Arguments:
for_var - Optional - which for loop