fix broken links
This commit is contained in:
@ -21,7 +21,7 @@ To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen).
|
||||
|
||||
### Returns
|
||||
|
||||
* [Boolean](/reference/types/boolean) - `true` for on and `false` for off
|
||||
* [Boolean](/blocks/logic/boolean) - `true` for on and `false` for off
|
||||
|
||||
### Example
|
||||
|
||||
|
@ -14,7 +14,7 @@ export function setPixel(_this: micro_bit.Image, x: number, y: number, value: bo
|
||||
|
||||
* x - [Number](/reference/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/reference/images/image)
|
||||
* x - [Number](/reference/types/number); the *y coordinate* or vertical position of a pixel in an [image](/reference/images/image)
|
||||
* value -[Boolean](/reference/types/boolean); the on/off state of a pixel; `true` for on, `false` for off
|
||||
* value -[Boolean](/blocks/logic/boolean); the on/off state of a pixel; `true` for on, `false` for off
|
||||
|
||||
### x, y coordinates?
|
||||
|
||||
|
@ -12,7 +12,7 @@ input.buttonIsPressed(Button.A);
|
||||
|
||||
### Returns
|
||||
|
||||
* [Boolean](/reference/types/boolean) that is `true` if the button you are checking is pressed, `false` if it is not pressed.
|
||||
* [Boolean](/blocks/logic/boolean) that is `true` if the button you are checking is pressed, `false` if it is not pressed.
|
||||
|
||||
### Example
|
||||
|
||||
|
@ -23,7 +23,7 @@ instead of the USB cable.
|
||||
|
||||
### returns
|
||||
|
||||
* a [boolean](/reference/types/boolean) that means whether the pin you say is pressed (`true` or `false`)
|
||||
* a [boolean](/blocks/logic/boolean) that means whether the pin you say is pressed (`true` or `false`)
|
||||
|
||||
### Example
|
||||
|
||||
|
@ -17,7 +17,7 @@ other than 0 to 4), this function will return `false`.
|
||||
|
||||
### Returns
|
||||
|
||||
* a [boolean](/reference/types/boolean). If it is `true`, that means the LED is on. If it is `false`, that means the LED is off.
|
||||
* a [boolean](/blocks/logic/boolean). If it is `true`, that means the LED is on. If it is `false`, that means the LED is off.
|
||||
|
||||
### ~hint
|
||||
|
||||
|
@ -23,7 +23,7 @@ radio.onDataReceived(() => {
|
||||
|
||||
### Example: Light level receiver
|
||||
|
||||
This example shows the light level from the [light level sender example](/reference/input/send-number)
|
||||
This example shows the light level from the [light level sender example](/reference/radio/send-number)
|
||||
as a number.
|
||||
|
||||
```blocks
|
||||
@ -36,7 +36,7 @@ basic.forever(() => {
|
||||
|
||||
### Example: Mailbot
|
||||
|
||||
This example receives the light level from the [light level sender example](/reference/input/send-number)
|
||||
This example receives the light level from the [light level sender example](/reference/radio/send-number)
|
||||
and shows a text string like **ALERT** if the light level becomes much brighter.
|
||||
To find when the mail arrives, you can put the light level sender in your mailbox and it will
|
||||
tell you when someone opens the box. You can try this with a normal
|
||||
@ -58,5 +58,5 @@ basic.forever(() => {
|
||||
|
||||
### See also
|
||||
|
||||
[send number](/reference/input/send-number), [on data received](/reference/radio/on-data-received)
|
||||
[send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
|
@ -20,7 +20,7 @@ This function only works on the micro:bit, not in browsers.
|
||||
### Example
|
||||
|
||||
This example shows how strong the radio signal of the
|
||||
[light level sender example](/reference/input/send-number) is.
|
||||
[light level sender example](/reference/radio/send-number) is.
|
||||
|
||||
```blocks
|
||||
let x = 0;
|
||||
|
@ -27,7 +27,7 @@ The following arithmetic operators work on numbers and return a [Number](/refere
|
||||
|
||||
### Relational operators
|
||||
|
||||
The following relational operators work on numbers and return a [Boolean](/reference/types/boolean):
|
||||
The following relational operators work on numbers and return a [Boolean](/blocks/logic/boolean):
|
||||
|
||||
* equality: `(3 + 1) = 4`
|
||||
* inequality: `3 != 4`
|
||||
@ -67,5 +67,5 @@ basic.showNumber(abs);
|
||||
|
||||
### See also
|
||||
|
||||
[math](/blocks/math), [var](/blocks/variables/var), [Boolean](/reference/types/boolean), [show number](/reference/basic/show-number)
|
||||
[math](/blocks/math), [var](/blocks/variables/var), [Boolean](/blocks/logic/boolean), [show number](/reference/basic/show-number)
|
||||
|
||||
|
3
docs/reference/types/string-functions.md
Normal file
3
docs/reference/types/string-functions.md
Normal file
@ -0,0 +1,3 @@
|
||||
## String functions
|
||||
|
||||
TBD
|
Reference in New Issue
Block a user