Variables are a unique way to store information through numbers. Also, it can a form of communication through multiple objects. Variables can be used with almost any part of Hopscotch, from Art Pads to Clones. To learn about variables, I recommend that you know basic math and or algebra.
What Are Variables?
Variables are always set to a number. This number can be a fraction, or a decimal. A variable can also be set to an equation, with the answer to the equations would be the variable. Variables are often used with Clone IDs and multiples of a numbers for art pads.
How Can I Use Variables?
First, you have to create the variable. You can do this by using the Set (Variable) Block. Choose a name for your variable. For this example, we are going to use "X". Now, you are going to want to Set your variable to a specific number. For this example, we are going to use the number 2. Congrats! You have just set a variable to a specific number! Now, if you want to see more about variables, create a text object. Select the When___=___ Block. Put in the blanks 7's or any number that is the same (1's 2's 3's and so on and so forth). Now tap or click the set text Block. Click on the list button at the top right of the keyboard. Scroll over to the IPad section and click on your variable. Press the play button. This text will now show the value that you set to your variable!
Optional Homework:Create A Project that includes variables in it.