do/while

  • Updated

A irScript do/while statement is used to iteratively execute a statement block, such that at least one iteration occurs and subsequent iterations occur in response to positive outcome of some conditional test:

var coll = [];

do
{
coll.Add( {} );
}
while ( coll.Count < 1000 );

Break and continue statements may be used inside a do/while block.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.