Hi guys!
I want to end an while-loop if my condition is no longer met (for exampel if C < C[1]).
I tried this:
While cond = true Begin
If conditioncode....
Else cond = false;
End;
I think this should stop it? I even tried with numbers if that's the prob (true = 1 and false = 0) but it made no difference.
Is there a command to quit the loop earlier, like a return() as in other languages?
Thanks in advance!
/Johan
I want to end an while-loop if my condition is no longer met (for exampel if C < C[1]).
I tried this:
While cond = true Begin
If conditioncode....
Else cond = false;
End;
I think this should stop it? I even tried with numbers if that's the prob (true = 1 and false = 0) but it made no difference.
Is there a command to quit the loop earlier, like a return() as in other languages?
Thanks in advance!
/Johan