-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
Michał edited this page Jan 21, 2023
·
7 revisions
In order to define a variable in IterkoczeScript, use a unique identifier that is not used yet. For example: myVar;
Or you can define and initialize the variable with a value like this: myVar = 12;
You can use your variables in the code by referencing their name. Like this Write(myVar);
You can use modifiers with your variables.
List of modifiers:
- const: Makes the variable read only
- global: Makes the variable available globally, not only in the current function. By default all variables are defined as local
To use any modifiers, you have to start the variable definition with remember.
remember global const Points = 100;
You can also delete the variable from memory by using:
forget Points;