rhai/scripts/while.rhai
2020-03-18 10:40:07 +08:00

9 lines
92 B
Plaintext

// This script runs a while loop
let x = 10;
while x > 0 {
print(x);
x = x - 1;
}