🐐 Array indexing
This commit is contained in:
@@ -102,6 +102,15 @@ Arrays are defined using square brackets (`[]`) and commas (`,`). An array of in
|
||||
DESIGNA x VT [I VSQVE X]
|
||||
```
|
||||
|
||||
Individual elements can be accessed by index using square brackets. Indexing is 1-based, so `I` refers to the first element:
|
||||
|
||||
```
|
||||
DESIGNA x VT [(I, II, III)]
|
||||
DICE(x[I])
|
||||
|
||||
> I
|
||||
```
|
||||
|
||||
## Conditionals
|
||||
### SI/TVNC
|
||||
If-then statements are denoted with the keywords `SI` (if) and `TVNC` (then). Thus, the code
|
||||
|
||||
Reference in New Issue
Block a user