Do-while-loops execute a body expression at least once, and then keep executing it as long as the loop condition evaluates to true
.
A do-while-loop which logs numbers in range 10 to 0 (inclusive) can be written as follows:
var i = 10;
do {
trace(i);
} while (i-- > 0);
Try the example on try.haxe.org.