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
619b627d54
rhai
/
scripts
/
while.rhai
9 lines
92 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);
x = x - 1;
}
Reference in New Issue
Copy Permalink