Skip to content

Add Missing `loop` Variables #48

Closed
paularmstrong opened this Issue Feb 11, 2012 · 0 comments

1 participant

@paularmstrong
Owner

Add the following missing helper variables inside of for loops:

  • loop.index0 - The current iteration of the loop. (0-indexed)
  • loop.revindex - The number of iterations from the end of the loop (1-indexed)
  • loop.revindex0 - The number of iterations from the end of the loop (0-indexed)
  • loop.cycle - A helper function to cycle between a list of sequences. See the explanation here.

Change loop.index to be 1-indexed instead of 0-indexed as it is currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.