Skip to main content

Variables

Variables let you store values and reuse them later in your program. They are very useful for storing all kinds of data.

Create a variable

Variable creation

To create a variable, simply click on the button and a window will open to enter the name of the variable.

Setting variable name

Give it the name of your choice, it must be unique.

Call a variable

Using a variable

Type: Value

Definition :

A variable can be called anywhere in the program, as long as it has been declared before.

Use :

If we want to use a variable to store a value and reuse it later.

Modify a variable

Variable settings

Definition :

We can:

  • Change the variable name
  • Delete variable

Use :

If we want to modify a variable already created.

Set to a specific value

Set variable to specific value

Type: Order

Definition :

Set a variable to a specific value. This value can be a number, text, list, etc.

Use :

If you want to define a variable to a value, for example to remember the position of an element in a list.

Increment

Variable increment

Type: Order

Definition :

Incrementing a variable is used to increase the value of a variable by the desired value.

Use :

If we want to increase a variable by 1 each turn of the loop for example.