From: Fuad Latip on
Dear All brilliant friend,

I hope you all here willing to help me.

My Case:
i have several looping and want to skip any loop if condition meet.

Loop1
Loop2
Loop3

if condition 1
skip loop 3
elseif condition 2
skip loop2
elseif condition 3
skip loop 1
end if

End Loop3
End Loop2
End Loop3

anybody can help me how to skip any loop according to the condition meet. Tq so much with your super duper help.
From: Walter Roberson on
Fuad Latip wrote:

> My Case:
> i have several looping and want to skip any loop if condition meet.

> Loop1
> Loop2
> Loop3
>
> if condition 1
> skip loop 3
> elseif condition 2
> skip loop2
> elseif condition 3
> skip loop 1
> end if
>
> End Loop3
> End Loop2
> End Loop3

> anybody can help me how to skip any loop according to the condition
> meet.

The only way to do that directly is to use try/catch and error()

Better is the indirect:

Loop1
Loop2
Loop3
if contintion1 || condition2 || condition3; break; end
End %Loop3
if condition1 || condition2; break; end
End %Loop2
if condition1; break; end
End %Loop1