Blockly Goto, Gosub or Jump

bill2003

New Member
Is there a way to use a Goto or Gosub or jump to a label in Blockly such as If A=45 Goto Label.

I can see that it could be done by using the Procedure function but I am teaching 8 years olds and looking for a simple way to jump somewhere within a program without having to use a Function. If there isn't a way of doing this simply, it seems a pretty major omission.

Bill
 

hippy

Technical Support
Staff member
Blockly is designed to encourage block structured programming and GOTO are anathema to block structured programming.

Procedure calls are available but should not be used to jump around the program. It may be that it is necessary to design your program or algorithm in a different way.
 
Top