Mel - Maya Embedded Language

do while

The do-while loop runs a command while the test condition holds true
A do-while loop mainly consists of:

do {operation;} while (test condition);

string $myArray [] = {"one","two","three","four"};
int $i =0;
do
{
	if ($myArray[$i] == "one")
		print ("\n"+$myArray[$i] + " dead roach!");
	else
		print ("\n"+$myArray[$i] + " dead roaches!");
$i++; //do not forget this or Maya will get stuck in an infinite loop
}
while ( $i < size($myArray));