batch fixing ](/microbit/ -> ](/ links
This commit is contained in:
@ -20,9 +20,9 @@ for (let k = 0; k < 4; k++) {
|
||||
|
||||
### Lessons
|
||||
|
||||
[looper](/microbit/lessons/looper)
|
||||
[looper](/lessons/looper)
|
||||
|
||||
### See also
|
||||
|
||||
[while](/microbit/reference/loops/while), [if](/microbit/blocks/if)
|
||||
[while](/reference/loops/while), [if](/blocks/if)
|
||||
|
||||
|
@ -5,7 +5,7 @@ Repeat code in a loop while a condition is true.
|
||||
### @parent blocks/language
|
||||
|
||||
|
||||
Repeat code while a [Boolean](/microbit/reference/types/boolean) `condition` is true.
|
||||
Repeat code while a [Boolean](/reference/types/boolean) `condition` is true.
|
||||
|
||||
### ~hide
|
||||
|
||||
@ -19,7 +19,7 @@ let condition = false
|
||||
|
||||

|
||||
|
||||
The while loop has a *condition* that evaluates to a [Boolean](/microbit/reference/types/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 while loop has a *condition* that evaluates to a [Boolean](/reference/types/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.
|
||||
|
||||
@ -35,9 +35,9 @@ The following example uses a while loop to make a diagonal line on the LED scree
|
||||
|
||||
### Lessons
|
||||
|
||||
[rotation animation](/microbit/lessons/rotation-animation)
|
||||
[rotation animation](/lessons/rotation-animation)
|
||||
|
||||
### See also
|
||||
|
||||
[on button pressed](/microbit/reference/input/on-button-pressed), [for](/microbit/reference/loops/for), [if](/microbit/blocks/if), [forever](/microbit/reference/basic/forever)
|
||||
[on button pressed](/reference/input/on-button-pressed), [for](/reference/loops/for), [if](/blocks/if), [forever](/reference/basic/forever)
|
||||
|
||||
|
Reference in New Issue
Block a user