I know how to do this with a loop and if statement, but not with a for iterator.
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.
The if equivalent would be
CODE
i = 0
loop
i += 2
$varnum = i
if i >= 20
break
end
end
I'm looking for some smaller version of that code.