Skip to content

Variables

ebp012 edited this page Sep 24, 2024 · 1 revision

Aspen is a typeless language, so there are no variable types until they are called.

Variables are defined using using the $ operator. For example:

$a = 1;

defines a variable a to be equal to 1.

When calling variables, the $ operator is ommitted:

print(a);

which will result in:

1

as the output.

Clone this wiki locally