shebee
2013-03-20 22:02:13
I have a question…
My loop is something like this:
[PHP]
begin
setupsrl;
repeat
mainloop;
until (blabla)
end.[/PHP]
In my main loop, it checks certain things and logs out for a few mins as a fail safe, this is in the middle of the procedure.
Something like this:
[PHP]if (this) and (not (that)) then
begin
pause;
end else
then it goes on[/PHP]
When my pause procedure is complete, it will jump back right, but do will it then exit the procedure? Or will it continue?
I'm fairly sure (actually 99% sure) that it will exit the whole procedure and go back to my main loop thus beginning the whole thing again.
And another question, if it wouldn't exit the procedure, could I just add "Exit;" and it would exit the procedure only jumping back to my main repeat thing but not back as far as setting up SRL again etc?
My loop is something like this:
[PHP]
begin
setupsrl;
repeat
mainloop;
until (blabla)
end.[/PHP]
In my main loop, it checks certain things and logs out for a few mins as a fail safe, this is in the middle of the procedure.
Something like this:
[PHP]if (this) and (not (that)) then
begin
pause;
end else
then it goes on[/PHP]
When my pause procedure is complete, it will jump back right, but do will it then exit the procedure? Or will it continue?
I'm fairly sure (actually 99% sure) that it will exit the whole procedure and go back to my main loop thus beginning the whole thing again.
And another question, if it wouldn't exit the procedure, could I just add "Exit;" and it would exit the procedure only jumping back to my main repeat thing but not back as far as setting up SRL again etc?
You only exit a procedure/function when you call exit;, you reach the end of it, or you raise an exception. Hopefully my [terrible paint] picture helps visualize the normal flow of the program.