pxt-calliope/docs/blocks.md
Richard Knoll 44beec4661 Adding docs for always decompile blocks (#360)
* Adding docs for always decompile blocks

* Renaming file and adding example

* Adding link to javascript blocks
2017-03-01 14:51:39 -08:00

575 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, javascript blocks