Changing Variables
The meaning of the word "variable" is "to vary", "to change".
You can update a variable by assigning it a new value:
- declare a variable
x
with value 5 - output
x
- add an
Assign
block, with variable namex
and value19
(x = 19) - output
x
You should see 2 numbers printed:
- 5 - first value of
x
- 19 - newly assigned value of
x