mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-08-14 18:27:25 +00:00
Better inc/dec example
This commit is contained in:
@@ -521,10 +521,11 @@ PLASMA has an increment and decrement statement. This is different than the incr
|
|||||||
```
|
```
|
||||||
byte i
|
byte i
|
||||||
|
|
||||||
i = 0
|
i = 4
|
||||||
while i < 100
|
i++ // increment i by 1
|
||||||
i++
|
puti(i) // print 5
|
||||||
loop
|
i-- // decrement i by 1
|
||||||
|
puti(i) // print 4
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Control Flow
|
#### Control Flow
|
||||||
|
Reference in New Issue
Block a user