🔁 Loops | myBetabox

🔁 Loops

Loops are powerful tools used by programmers to run code over and over and over and over… There are a few ways to use loops in Dragit, the simplest being the repeat function.

The repeat function will run the functions inside of it the number of times you set it. Try this code out for yourself!

The repeat until function works similarly to the repeat function but it uses a variable instead of running a set number of times. If you look in the Operators and Variables tabs you can find things that can be placed in this function.

The forever function will repeat, well, forever.

Build the program in the image or download the XML to create your first loop. Customize it to make it your own!


loop.xml