Do While Statements in Trillium

In Trillium the do while loop is basically a while loop except that it will execute the code block at least one time.


The do-while loop starts with the do keyword followed by a code block and a boolean expression with the while keyword. The do-while loop stops execution exits when a boolean condition yields to false. Because the while(condition) is specified at the end of the block, it will be guaranteed to execute the block at least one time.

Do-While Loops Explained


Below is a basic example of a Do-While loop in Trillium


An error has occurred. This application may no longer respond until reloaded. Reload 🗙