Posted 07 December 2012 - 08:36 AM
I want to use a for loop, but instead of iterating sequentially in ascending order, I would like to go in descending order. So for example,
EDIT: Extensive googling gave me my answer.
for i = 5,1 do
print("descending order #"..i)
end
How would I do that?EDIT: Extensive googling gave me my answer.
for i = 5,1,-1 do --using iterations of -1
print("descending order #"..i)
end
Edited on 07 December 2012 - 07:41 AM