25.11.2022, 09:37 
		
	
	
		Hello,
I'm trying to figure out a way to reverse a loop counting backwards instead.
This code work for normal loop
But running something like this, renders nothing.
Is it possible to do a reverse loop with simple code?
	
	
	
I'm trying to figure out a way to reverse a loop counting backwards instead.
This code work for normal loop
Code:
local strStart = 1
local strStop = 5
local result = 0
for i = strStart, strStop do
  result = result + 1
  log(result, i)
endBut running something like this, renders nothing.
Code:
local strStart = 5
local strStop = 1
local result = 5
for i = strStart, strStop do
  result = result - 1
  log(result, i)
endIs it possible to do a reverse loop with simple code?