Waiting and Non-waiting Blocks in VEXcode GO

Non-waiting blocks

Non-waiting blocks have the stack continue even if the block’s behavior is not yet complete.

The [Drive] block is a good example of a non-waiting block. In the example below, the Code Base does not move because the [Drive] block begins, but then the [Stop driving] block stops it before the motors can move.

Example of a non-waiting block in a programming tutorial, illustrating the concept of asynchronous processing in coding. Suitable for understanding block functionalities in the GO category.

Non-waiting blocks are useful when you want to perform multiple behaviors at the same time.


Waiting blocks

Waiting blocks pause the rest of the stack until that block’s behavior has been completed.

Most waiting blocks are found among the Motion and Drivetrain blocks.

If a Code Base needs to drive in a 300mm square, you can use waiting blocks to have the Code Base carry out each behavior individually.

Examples of waiting blocks in VEX programming, showcasing various configurations and uses for educational purposes in block-based coding tutorials.

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

Last Updated: