more migration to common docs (#370)

* more migration to common docs

* refactoring js

* removed duplicate docs

* migrating more docs

* more refactoring

* migrated browsers page

* updated summary
This commit is contained in:
Peli de Halleux
2017-03-14 12:07:17 -07:00
committed by GitHub
parent 1acad5195e
commit fb5bb396e1
51 changed files with 34 additions and 1656 deletions

View File

@ -1,15 +1,6 @@
# While
# @extends
Repeat code while a [Boolean](/blocks/logic/boolean) `condition` is true.
```block
while(true) {
}
```
The while loop has a *condition* that evaluates to a [Boolean](/blocks/logic/boolean) value. After the `do` keyword, add the code that you want to run while the `condition` is `true`. The while loop concludes with `end while`.
The condition is tested before any code runs. Which means that if the condition is false, the code inside the loop doesn't execute.
## #examples
### Example: diagonal line
@ -24,8 +15,3 @@ input.onButtonPressed(Button.A, () => {
}
})
```
### See also
[on button pressed](/reference/input/on-button-pressed), [for](/blocks/loops/for), [if](/blocks/logic/if), [forever](/reference/basic/forever)