Skip to content

While Else Block

Michał edited this page Jan 9, 2023 · 4 revisions

In IS, you can use a standard, C like while block, but it works as a do while block. Instead of while like in C, IterkoczeScript uses a while else block.

for example:

val = 10;

while (val < 10) {
     val = val + 1;
}
else {
     Write("Variable `val` was big enough");
}

Clone this wiki locally