pxt-calliope/docs/reference/loops/repeat.md

20 lines
279 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Repeat
2016-04-02 01:22:47 +02:00
Repeat code a preset number of times.
2016-03-26 00:47:20 +01:00
### Block Editor
![](/static/mb/blocks/contents-0.png)
### Touch Develop
Touch Develop has no `repeat` loop. Instead you can used a for loop
```
for (let i = 0; i < 5; i++) {
}
```
The loop above will repeat five (5) times.