various docs updates

This commit is contained in:
Peli de Halleux
2016-05-19 13:56:24 -07:00
parent 9a36a2fc05
commit c65bdb34af
10 changed files with 41 additions and 90 deletions

View File

@@ -1,15 +1,13 @@
# For
Repeat code a preset number of times.
### @parent blocks/language
Repeat code a fixed number of times.
### Block Editor
![](/static/mb/events-0.png)
```blocks
for(let i = 0; i < 5; ++i) {
}
```
The Block Editor *for* loop is different than the Touch Develop *for* loop in an important way. The above for loop will iterate *five* times, with the loop variable *i* taking on values 0, 1, 2, 3, and 4. The Touch Develop for loop shown below will iterate four times: