You can then Paste anything you cut or copied.You can also click on a block and select "Copy" which places a copy of the block on the clipboard so you can use a copy someplace else in your program.Cut a single block out of a diagram without changing anything else by clicking on the block and clicking on the "Cut" menu item.If your block is on or very close to a compatible block, it will snap into place with an audible click, but if there is no click, they are not compatible.Click on the block, and holding your mouse button down, grab and drag the block to a new location.When you are pointing at a block the cursor arrow will turn to a hand.This example shows Variable1 being set to a fixed value of 350.25, which is about to be clicked into the variable, and Variable2 set to the value of Variable1. Variables can be text, numbers, or a Boolean. The Set block is used to set the value of a variable through the input notch. In our example, the If Do block is accepting an input from Touch LED sensor called "touch_led_6" and the value is either "True" or "False." We will go over If Do blocks below: The input fits into the puzzle-piece opening on the right-hand edge of the block. Inputs can be variables, numbers, sensor values, controller inputs or Boolean logical constants. This is a basic block, which tells the robot's computer to do one thing, in this case to start the program and turn off the drivetrain: There are a few things to know about blocks and how to use them. This block, for example, tells the robot's computer to set the left motor to a power level equal to joystick Channel A from the remote control:
It allows users to apply programming principles without having to worry about syntax. Blockly uses interlocking graphical blocks to represent code concepts like commands, variables, logical expressions, loops, and more. Instead of writing text programming code, with Blockly you will drag-and-drop graphical code blocks into a work area. It's not a prerequisite, but you will get a faster start with Blockly if you are already familiar with the IDE Quick Start Guide. Before reading this you should read through the Project and IDE Quick Start Guide.