Take the following MEL code in Maya:
print("one...\n");
do {
print("two...\n");
break;
print("three...\n");
} while(false);
print("four...\n\n");
…and the result is:
one... two...
instead of the expected
one... two... four...
If you replace the break statement with a continue, it gives the correct result.
Found recently after 10+ yrs of working with Maya :)
Advertisement