/t5/coldfusion-discussions/invert-index-loop/m-p/969027#M88491May 13, 2008
May 13, 2008
Copy link to clipboard
Copied
Use the "step" attribute. The default is step="1" (ie
increment by positive 1). You can cause the loop to "count down" by
using step="
-1". (ie decrease the index by 1 in each loop)
You don't need to waste time sitting there wondering how to
do it, or
trying different stuff, or wait for people to come back to
you via the
forums (although they were pretty quick, this time): you can
help yourself,
via the docs.