While Statements in Trillium

In Trillium the while loop will repeatedly execute a block of code as long as the specified condition stays true.


The while loop starts with the while keyword, and it must include a boolean conditional expression that returns either true or false (this does not mean a literal true or false). It executes the code block until the specified conditional expression yields false.

While Loops Explained


When using the while loop, initialization should be done before the loop starts, and increment or decrement steps should be inside the loop.


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