rhai/scripts/while.rhai

9 lines
90 B
Plaintext
Raw Normal View History

2022-01-20 05:06:36 +01:00
// This script runs a while loop.
2020-03-16 07:50:12 +01:00
let x = 10;
2016-03-02 03:36:46 +01:00
while x > 0 {
print(x);
2020-05-25 14:14:31 +02:00
x -= 1;
2016-03-02 03:36:46 +01:00
}