UNPKG
pxt-ev3
Version:
dev (1.2.31)
latest (1.4.41)
1.4.41
1.4.40
1.4.39
1.4.38
1.4.37
1.4.36
1.4.35
1.4.34
1.4.33
1.4.32
1.4.31
1.4.30
1.4.29
1.4.28
1.4.27
1.4.26
1.4.25
1.4.24
1.4.23
1.4.22
1.4.21
1.4.20
1.4.19
1.4.18
1.4.17
1.4.15
1.4.14
1.4.13
1.4.12
1.4.11
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.2.31
1.2.30
1.2.28
1.2.27
1.2.26
1.2.25
1.2.24
1.2.23
1.2.22
1.2.21
1.2.20
1.2.19
1.2.18
1.2.17
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.1.20
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
LEGO MINDSTORMS EV3 for Microsoft MakeCode
github.com/Microsoft/pxt-ev3
Microsoft/pxt-ev3
pxt-ev3
/
docs
/
reference
/
control
/
assert.md
12 lines
(9 loc)
•
210 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
#
@extends
## Example #example
Stop
the program
if
the gyro dectects an angle greater than
45
degrees.
``
`blocks forever(function () { control.assert(sensors.gyro2.angle() > 45, 15) pause(300) }) `
``