rhai 0.15.0

Embedded scripting for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// This script runs an infinite loop, ending it with a break statement

let x = 10;

// simulate do..while using loop
loop {
    print(x);

    x -= 1;

	if x <= 0 { break; }
}