zluo
2012-06-01 00:59:30
i want to clear something up. how is break; used? can it be used to exit out of an entire procedure?
2012-06-01 00:59:30
2012-06-01 01:00:36
2012-06-01 01:02:45
repeat
wait(100);
if (condition1) then break;
if (condition2) then break;
until(false);
which is the same as:repeat
wait(100);
until (condition1) or (condition2);so its more suitable for2012-06-01 01:06:03
2012-06-01 01:07:39
From: zluo
if you do exit; would it exit out and enter the next procedure on the mainloop or onto the next procedure after the one just exited? thanks for the responses
2012-06-01 01:10:39
From: zluo
if you do exit; would it exit out and enter the next procedure on the mainloop or onto the next procedure after the one just exited? thanks for the responses
procedure abc1;
begin
end;
procedure abc2;
begin
if cond1 then exit;
//it will exit to the nxt proc based on ur mainloop, in this case abc1
end;
procedure abc3;
begin
end;
//mainloop
begin
abc2;
abc1;
abc3;
end.
2012-06-01 01:21:25