So I'm trying to build a simple while loop.
It's just something like this:
function genericfunction(value1,value2,value3)
whileindex = 1
while (whileindex < 101)
do
Prompt (whileindex)
whileindex = whileindex + 1
if whileindex > 99 then
break
return 0
end
end
end
So if you're wondering why I have the if whileindex and the break in there it's because the loop wasn't breaking on it's own.
So here's what happens:
You run the loop -
it gets to 100, never goes higher, locks in the loop.
So I added the break right? Added it and set it to 99.
Annnnd same thing, only this time the debug prompt shows it stopping at 98.
It never actually exits the loop.
Any thoughts?