Conditional loop statements

Conditional loop statements were introduced in the second revision of the, PIDD

Syntax examples

// While loop syntax example
while (<condition>) : {
    // <Code to execute>
};
// Do / While loop syntax example
do : {
    // <Code to execute>
}
while (<condition>);
// For loop syntax example
for (<condition1>, <condition2>, <condition3>) : {
    // <Code to execute>
};
// For-Each loop example
int_array(5) myNums(1, 2, 3, 4, 5);
for (myIntArray) : {
    // <Code to execute>
};

Last updated