Asked

Blockly Loop Execution Issue

Hello! I'm trying to create a loop in the Blockly programming environment, but it only executes the first statement and doesn't continue with the rest.

User-inserted image

Could someone please help me figure out why the loop is not working as expected? Thank you!


ARC Pro

Upgrade to ARC Pro

Synthiam ARC Pro is a new tool that will help unleash your creativity with programming robots in just seconds!

#1   — Edited

Look in the debug window, and you will find messages. If there is an error, it will be displayed there.

Also, don't forget that you are using the WAIT commands, which means they must complete before moving to the next command. The word WAIT means wait for something to complete until instructed to continue. So in your code, you audio soundboard would WAIT until it has completely finished before moving to the next command.

If you do not want that, do not use the WAIT commands.

User-inserted image