Assignment Operator

Set or change the value of a variable

Block Editor

Use the assignment operator to set or change the value of a variable.

Declare a variable

Declare a new local variable using the variable statement and the assignment operator. Like this:
The variable's name is on the left of the assignment operator and the variable's value is on the right:


  • You can use the assignment operator with variables of each of the supported types.


See also