Have any questions?

+44 (20) 3540 6226

hello@appshed.com

Increment a number using Blockly

0.0/5 rating (0 votes)
1) Go to the Templates and search for "number up".
Click "Use" to add the template.
IncrementNumber1
 
 
 
2) Edit the "Up" arrow
 IncrementNumber2
 
 
 
3) Collapse and Expand the blocks.
In some cases this is required:
Due to a glitch with Blockly you need to "collapse" and then "expand" the blocks (Right-click on the first purple block)
 
 IncrementNumber3
IncrementNumber4
 
 
4) Inspect the Blockly Code
 
IncrementNumber5
 
1: Set Variable (in the App Variables category)
2: Add two numbers (in the Math category)
3: String to Int (in the Convert category) to convert the text "10" into the number 10... that's required to do math.
4: AppShed Variable  (in the App Variables category... note this is different to the Set Variable)
5: Number (from the Math category)
 
 
 
Layout using Custom Classes
Add 2 custom classes to the Image items to achieve the left layout, 1/3rd width:
IncrementNumber6
IncrementNumber7.
 
 
 
 

Share this product

appshed name white text 250

Copyright © 2017 AppShed Limited