While loop
This commit is contained in:
@@ -30,4 +30,16 @@ create var *5 = "Hello"
|
||||
if bool {
|
||||
set var = "BASM!"
|
||||
}
|
||||
```
|
||||
|
||||
## while bool
|
||||
|
||||
Runs code until a boolean is false
|
||||
|
||||
Example:
|
||||
```
|
||||
create bool *1 = true
|
||||
while bool {
|
||||
# Loops forever because bool is never false
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user