-
Notifications
You must be signed in to change notification settings - Fork 23
Creating and using variables
bartbutenaers edited this page Aug 14, 2018
·
1 revision
Variables are used to store information (in memory). This way you can use that information in the next Blockly statements.
The animation below will explain how to achieve the following steps:
- Create a variable 'myVariable'.
- Store some information 'myInformation' in that variable.
- Read the information stored in that variable, and log it in the debug panel.
Multiple variables can be created. All variables will be created in a dropdown list, in which the required variable can be selected. The animation below will explain how to achieve the following steps:
- Create a first variable 'myFirstVariable'.
- Create a second variable 'mySecondVariable'.
- Store some information 'myInformation' in that second variable.
- Rename the second variable to 'myNewVariable'.