Understanding Block Shapes and Meaning in VEXcode VR

Blocks in VEXcode VR are puzzle-piece shaped blocks that connect above or below each other and are used to program. 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. Comparison of a VEXcode VR project in block-based and text-based code
Stack blocks Perform main commands. They are shaped to attach above or below other stack blocks. Examples of hat, stack, Boolean, and reporter block shapes in VEXcode VR Examples of hat, stack, Boolean, and reporter block shapes in VEXcode VR
Boolean blocks Return a condition as either true or false and fits inside any blocks with hexagonal (six-sided) inputs for other blocks. <Detects bumper switch pressed condition> Hat block with a stack block connected below to show how a block sequence starts
Reporter blocks Report values in the form of numbers and fits inside any blocks with oval inputs for other blocks. Examples of hat, stack, Boolean, and reporter block shapes in VEXcode VR Examples of hat, stack, Boolean, and reporter block shapes in VEXcode VR
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. Repeat block containing stack blocks to show commands repeating a set number of times If bumper pressed block returns true when the bumper is pressed

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

Last Updated: