A irScript break statement is used to immediately stop execution inside a for statement, while statement, do/while statement, or switch statement; execution continues with the statement immediately following the enclosing statement, if any:
var x = [1,2,3,4,5];
for( int i = 0; i < x.Count; i++ )
{
if( x[ i ] * x[ i ] > 20 )
{
break;
}
else
{
x[ i ] = null;
}
}
Comments
0 comments
Please sign in to leave a comment.