Understanding Block Shapes in VEXcode 123

VEXcode 123 has puzzle-piece shaped blocks that connect above or below each other and are used to code. A series of connected blocks is called a stack. There are five different shapes of blocks and each shape tells you about its role in the project.

 

Block Shape Description Block Examples
Hat blocks Start a stack of blocks and are shaped to attach blocks below them. VEXcode 123 When started hat block. VEXcode 123 When started hat block with a Set print color stack block attached below it.
Stack blocks Perform main commands. They are shaped to attach above or below other stack blocks. VEXcode 123 Print stack block. VEXcode 123 Drive for stack block with a Turn for stack block attached below it.
Boolean blocks Return a condition as either true or false and fit inside any blocks with hexagonal (six-sided) inputs for other blocks. VEXcode 123 Button pressed boolean block. VEXcode 123 If C block that has a Button pressed block in its boolean parameter slot.
Reporter blocks Report values in the form of numbers and fit inside any blocks with oval inputs for other blocks. VEXcode 123 Timer value reporter block. VEXcode 123 Print stack block that contains a Timer value reporter block in its printing parameter slot.
C blocks Loop the block(s) within them or check if a condition is true or false. They are shaped to attach stack blocks above, below, or inside them. VEXcode 123 Forever C block. VEXcode 123 If C block that has a Button pressed block in its boolean parameter slot. Inside of the If block is a Turn for block.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: