33 lines
643 B
Markdown
33 lines
643 B
Markdown
To create a comment, begin a line with a hash (#) symbol, like python.
|
|
|
|
## create var *bytes = Value
|
|
|
|
Creates the variable "var" with a set number of bytes allocated to it, and initialises its value.
|
|
**IMPORTANT:** The number of bytes cannot be modified later.
|
|
|
|
Example: `create var *5 = "Hello"`
|
|
|
|
## print var
|
|
|
|
Prints the value of `var` to the console, where `var` is a variable.
|
|
|
|
Example: `print var`
|
|
|
|
## set var = Value
|
|
|
|
Changes the value of an already created value.
|
|
|
|
Example: `set var = "World"`
|
|
|
|
## if bool
|
|
|
|
Runs code if a boolean is true.
|
|
|
|
Example:
|
|
```
|
|
create bool *1 = false
|
|
create var *5 = "Hello"
|
|
if bool {
|
|
set var = "BASM!"
|
|
}
|
|
``` |