CMC logo Cave Man Code

booga

also written: repeat

Loops

Do something again and again, a set number of times.

How to write it

booga <count>
    <things to do>
unga

What it does

booga 5 does the things inside five times.

The count must be a number. booga 0 does nothing.

Inside the loop there is a magic box named lap that remembers which lap you are on: 1 for the first lap, 2 for the second, and so on.

Example

booga 3
    oga "BOOGA!"
unga

oga "done"

Tips

See also

zug · zoop · unga

Back to all words