As title states. I don't have the code in front of me as i'm at work but here's an example.
MainLoop is set to repeat until false.
Simba Code:procedure mainLoop;
Proc1;
if Proc1() then
Proc2;
if Proc2() then
Proc3;
if Proc3() then
Proc4;
Simba Code:function proc3: Boolean;
begin
//code to result in true
//code to result in false
if result := false then
//return back to mainloop to Proc2()
end;