VexCode IQ Blocks - Sub-routines?

You would use variables like how @tfriez does with the distanceToMove variable in this post. The current value of the variable would be what is used in the broadcast.

Autonomous programming with VEXCode IQ Blocks