acceleration
Tilt: x is left (below 0) and right (above 0), y is forward and back. Input › more.
input.acceleration(Dimension.X)
micro:bit Foundations · Find each block in the MakeCode toolbox (the category is at the end of each line).
Tilt: x is left (below 0) and right (above 0), y is forward and back. Input › more.
input.acceleration(Dimension.X)
Exactly one part runs: the first when the condition is true, else the second. Click + on an if block.
if (condition) {
blocks
} else {
blocks
}
Runs the blocks inside only when the condition is true; does nothing when it is false. Logic.
if (condition) {
blocks
}
Another question, asked only if the ones above were false. The first true one wins.
} else if (condition) {