rhai 1.3.0

Embedded scripting for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
let a = 42;
let b = 123;

let x = if a <= b {         // if-expression
    b - a
} else {
    a - b
} * 10;

print(`x should be 810: ${x}`);