zoop
also written: for
Loops
Do something once for each thing in a pile or text.
How to write it
zoop <name> in <pile or text>
<things to do>
unga
What it does
zoop walks through a pile (or the letters of a text) one item at a time. The box you name holds the item for that lap.
Example
grunk pets = snorf("dog", "cat", "rock")
zoop pet in pets
oga "I love my", pet
unga
Tips
- For text, each lap gives you one letter.
- The loop box is a normal box: you can oga it, do math with it, and so on.