pxt-calliope/docs/blocks.md
2017-01-19 17:51:48 -08:00

528 B

Blocks language

@description Language constructs for the Block editor.

Blocks snap into each other to define the program that your @boardname@ will run. Blocks can be event (buttons, shake, ...) or need to be snapped into an event to run. The on-start event runs first.

for (let i = 0;i<5;++i) {}
if (true){}
let x = 0;
Math.random(5);

See Also

logic, loops, math, variables, on-start