I feel sort of stupid asking this, but whats the difference between exit and break?
I feel sort of stupid asking this, but whats the difference between exit and break?
http://www.macrosoftinc.com/ ---WTF COPIERS!!!
exit is out of the procedure function and break is that it breaks out the loop( a repeat until statement is needed)
SCAR Code:Procedure MKIsBack;
begin
exit; // exit procedure
WriteLn('ill never say this');
end;
SCAR Code:Procedure MKIsBackYes;
begin
repeat
Wait(5000);
break; // break free from loop
WriteLn('Ill never say this');
Until(false)
WriteLn('ill say this!');
end;
ok, just wanted to make sure, c++ keeps confusing my scar lol
http://www.macrosoftinc.com/ ---WTF COPIERS!!!
Break, breaks out of every kind of loop..
Exit, breaks out of procedure\function. I think it even stops the script if you put it in a MainLoop.SCAR Code:For I:= 0 to 99 do
begin;
Writeln(inttostr(I));
if (I=10) then break;
end;
Verrekte Koekwous
There are currently 1 users browsing this thread. (0 members and 1 guests)