🐐 Compound assignment

This commit is contained in:
2026-04-21 14:39:42 +02:00
parent ad46f189c0
commit c28ffbbf45
8 changed files with 53 additions and 1 deletions

View File

@@ -22,6 +22,18 @@ Variables are set with the `DESIGNA` and `VT` keywords. Type is inferred.
Variable can consist of lower-case letters, numbers, as well as `_`.
### Compound assignment
`AVGE` (+=) and `MINVE` (-=) are shorthand for incrementing or decrementing a variable:
![Compound assignment](snippets/compound.png)
```
> VIII
```
`x AVGE III` is equivalent to `DESIGNA x VT x + III`.
## Data types
### NVLLVS
`NVLLVS` is a special kind of data type in `CENTVRION`, similar to the `null` value in many other languages. `NVLLVS` can be 0 if evaluated as an int or float, or an empty string if evaluated as a string. `NVLLVS` cannot be evaluated as a boolean.