SRL Archive - Help

noob question


wantonman

2012-08-09 04:09:48

how can i get this while loop to work?

// while x=(0 .. 100) do

notice how i have the 0 .. 100 as a within range..

is there a way to rewrite this so it can fit in with this while loop?

Justin

2012-08-09 04:11:39

Something like this


while (x <> 100) do
begin
Blah;
x := x + 1;
end;

Untested.

Jordan155

2012-08-09 04:19:25

while( x>1 && x<100) do
begin

Calculations;
x = x + 1;

end;

riwu

2012-08-09 04:27:22

while InRange(x,0,100) do //it will perform the loop as long as x is within 0 to 100.

If what you want is to repeat 101 times, use for i:=0 to 100 do