
Originally Posted by
DannyRS
Have you tried using
I believe that starts the current Begin/End loop again, works for everything I've had to do
how would that work inside an If statement?
here's the code trying to call itself and failing: what i've tried so far lol.
Simba Code:
Function SelectFromMiningOverView(x: integer): boolean;
begin
if((findPassiveTargets.x = x) or (findPassiveTargets.y = x) or (findActiveTarget = x)) then
begin
SelectFromMiningOverView(x+1);
end else
begin
SelectFromOverView(x);
end;
end;
I know I could just put the if statement inside a loop and have Exit; right after it gets into the second part of the If. But I try to mix things up and learn new things. You can just yell at me if i'm being stupid though.