coolcamo8642
03-10-2008, 03:25 AM
I'm currently using the following code as a loop:
for ($counter = 0; $counter <= $Points; $counter += 1)
How many times it loops is based on user input. For example, if the user enters 60 (in the affecting field), it will loop a formula, starting at zero and stopping at sixty. However, I would like to have it start at sixty and go backwards and stop at zero. I've tried playing around with the values in the above code, but I always either [a] get an error, [b] get an infinite loop, or [c] get positive sixty all of the way to negative sixty.
Thanks in advance.
for ($counter = 0; $counter <= $Points; $counter += 1)
How many times it loops is based on user input. For example, if the user enters 60 (in the affecting field), it will loop a formula, starting at zero and stopping at sixty. However, I would like to have it start at sixty and go backwards and stop at zero. I've tried playing around with the values in the above code, but I always either [a] get an error, [b] get an infinite loop, or [c] get positive sixty all of the way to negative sixty.
Thanks in advance.