4 Replies Latest reply on May 14, 2008 5:03 AM by -==cfSearching==-

    Invert Index Loop

      So I've got a dumb q again...

      <cfloop index="q" from="-5" to="5">

      works perfectly and gives me numbers from -5 to 5. Counts up.

      How can I make it loop / output the other way, from 5 to -5. Counts down?

      This must be so easy, yet it escapes me. Its been a long day - forgive me.