This website requires JavaScript.
Explore
Help
Register
Sign In
kjuulh
/
rhai
Watch
1
Star
0
Fork
0
You've already forked rhai
Code
Issues
1
Pull Requests
1
Packages
Projects
Releases
Wiki
Activity
57cfd6a354
rhai
/
scripts
/
while.rhai
9 lines
89 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Put comments into example scripts.
2020-03-16 07:50:12 +01:00
// This script runs a while loop
[BREAKING CHANGE] change variable keyword to 'let' from 'var'
2017-10-02 08:46:35 +02:00
let x = 10;
Add a few examples
2016-03-02 03:36:46 +01:00
while x > 0 {
print(x);
Optimize op-assignment statement.
2020-05-25 14:14:31 +02:00
x -= 1;
Add a few examples
2016-03-02 03:36:46 +01:00
}
Reference in New Issue
Copy Permalink