while in the DuScript

·

1 min read

while

while - a loop that checks the condition before each execution, and line breaking occurs through "&^" in the if block there cannot be a cycle, but in the while loop, the if block can be and if there is an if block in the while, line breaking occurs as usual through " ^".

while ([condition]) { 
    [body]&^
};

Sample:

while (1==1) {
    printl (1)&^
    if (2==1) {
        printl (2)^
    }&^
};

Will: 11111111111111111111111111111111111++