SRL Archive - OSR Help

How would i make a script start from the beginning of main loop?


rs cheata

2013-04-01 16:20:21

Title says it; any way?

serajin

2013-04-01 16:22:22

What do you mean by start from the beginning of Main Loop? Is main loop a function you created, or are you referring to the actual main body of the script?

tealc

2013-04-01 16:34:13

would something like this work


program new;
label mainloop;

procedure mainloop2;
begin
writeln('blabla');
end;

begin
mainloop: mainloop2;
goto mainloop;

end.

wthomas

2013-04-01 16:43:19

From: tealc
would something like this work


program new;
label mainloop;

procedure mainloop2;
begin
writeln('blabla');
end;

begin
mainloop: mainloop2;
goto mainloop;

end.



Please never use goto's, you could structure that script just like this:

program new;


procedure mainloop2;
begin
writeln('blabla');
end;

begin
repeat
mainloop;
until 1=0;
end.
And you'll actually be able to follow the logic.