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
71bc605fe6
Branches
Tags
View all branches
rhai
/
scripts
/
while.rhai
9 lines
90 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Format example scripts better.
2022-01-20 12:06:36 +08:00
// This script runs a while loop.
Put comments into example scripts.
2020-03-16 14:50:12 +08:00
[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-01 21:36:46 -05:00
while
x
>
0
{
print
(
x
)
;
Optimize op-assignment statement.
2020-05-25 20:14:31 +08:00
x
-=
1
;
Add a few examples
2016-03-01 21:36:46 -05:00
}
Reference in New Issue
Copy Permalink