Page 58 - Touchcode_C6_Flipbook
P. 58
Step 6: Drag two 'comparison' blocks from 'Logic' to the workspace area. Add two
comparison operators to both sides of the AND condition.
Step 7: Choose 'Set background color to' from 'Scene'. Drag 'set background color to'
block two times to workspace area, and add one 'set background color to' block
to 'if', and other 'set background color to' to else, of 'if-else' block.
Step 8: Choose and set the background color, as green and yellow by clicking on the
color circle and selecting the color.
Step 9: Drag the 'Height' variable two times to the workspace area. Drop the 'Height'
variable to the 'If' block.
56 Touchcode-VI

