Variables

AbleScript variables can be defined using dim keyword:

variable dim;

This will create an uninitialised variable, so it's value will be nul.

For assigning value to variable, you can use:

42 =: variable;

Initial value of variable can be defined on declaration:

variable dim 42;

Constants

Constants cannot be user defined, they are internally defined inside AbleScript interpreter (see ablescript/src/consts.rs)

Banning

AbleScript has bannable variables, what means when variable is banned, it cannot be used and it's usage resolves into runtime error.

Ban keyword was named after Rust Language Community Discord Server's owner MelodicStream#1336 nicknamed Melo:

variable dim /*Hello, world!*/;
melo variable;
variable print; owo Runtime Error