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
1b5203c42c
rhai
/
scripts
/
while.rhai
9 lines
91 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Use //! for script docs.
2022-07-24 17:03:35 +02:00
//! This script runs a while loop.
Put comments into example scripts.
2020-03-16 07:50:12 +01: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-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