Anyone able to tell me how to do a loop that can do this?
CODE
for i in min..max
$num1 = i
Do Something
end
Where i is an odd or even or whatever number. $num1 = i
Do Something
end
The if equivalent would be
CODE
i = 0
loop
i += 2
$varnum = i
if i >= 20
break
end
end
loop
i += 2
$varnum = i
if i >= 20
break
end
end
I'm looking for some smaller version of that code.