Updating loop docs
This commit is contained in:
parent
9d405afde0
commit
67c8753315
@ -20,5 +20,5 @@ basic.showNumber(i)
|
|||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
|
||||||
[while](/reference/loops/while), [if](/reference/logic/if), [show number](/reference/basic/show-number)
|
[repeat](/reference/loops/repeat), [while](/reference/loops/while), [if](/reference/logic/if), [show number](/reference/basic/show-number)
|
||||||
|
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
# Repeat
|
# Repeat
|
||||||
|
|
||||||
Repeat code a preset number of times.
|
Run part of the program the number of times you say.
|
||||||
|
|
||||||
### Block Editor
|
### Block Editor
|
||||||
|
|
||||||
![](/static/mb/blocks/contents-0.png)
|
![](/static/mb/blocks/contents-0.png)
|
||||||
|
|
||||||
### Touch Develop
|
### Lessons
|
||||||
|
|
||||||
Touch Develop has no `repeat` loop. Instead you can used a for loop
|
[looper](/lessons/looper)
|
||||||
|
|
||||||
```
|
### See also
|
||||||
for (let i = 0; i < 5; i++) {
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
The loop above will repeat five (5) times.
|
[for](/reference/loops/for), [while](/reference/loops/while), [if](/reference/logic/if), [show number](/reference/basic/show-number)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user