rhai/scripts/loop.rhai
2017-10-30 08:08:44 -07:00

9 lines
106 B
Plaintext

let x = 10;
// simulate do..while using loop
loop {
print(x);
x = x - 1;
if x <= 0 { break; }
}