I know that the Break function is not supported in TI. But in the past it never bite me, until today.
Looking at this code:
Code: Select all
c = 1;
While( c > 0 );
If( 'X' @= 'Y' );
Break;
EndIf;
c = c + 1;
If( c > 3 );
Break;
EndIf;
End;
The first IF is never True.
The second IF should be executing and lead to a Break and escape the loop, it does not.
Now here's something important: if I uncomment the first Break, the second executes !
So it looks like you cannot have 2 Break statements within the loop.
Did anyone come across this one ?