View Full Version : noob question
wantonman
08-09-2012, 08:09 AM
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
08-09-2012, 08:11 AM
Something like this
while (x <> 100) do
begin
Blah;
x := x + 1;
end;
Untested.
Jordan155
08-09-2012, 08:19 AM
while( x>1 && x<100) do
begin
Calculations;
x = x + 1;
end;
http://mastercleansesecretv.com/upload/25/happy.png
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
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.