2016-06-14 11:49:58 -04:00
|
|
|
# Blocks language
|
|
|
|
|
2016-11-29 00:04:21 -08:00
|
|
|
### @description Language constructs for the Block editor.
|
2016-08-17 09:44:15 -07:00
|
|
|
|
2017-01-19 17:51:48 -08:00
|
|
|
Blocks snap into each other to define the program that your @boardname@ will run.
|
2017-03-01 14:51:39 -08:00
|
|
|
Blocks can be event (buttons, shake, ...) or need to be snapped into an event to run.
|
2017-01-19 17:51:48 -08:00
|
|
|
The [on-start](/blocks/on-start) event runs first.
|
|
|
|
|
2016-06-14 17:20:45 -04:00
|
|
|
```namespaces
|
2016-06-14 11:49:58 -04:00
|
|
|
for (let i = 0;i<5;++i) {}
|
|
|
|
if (true){}
|
|
|
|
let x = 0;
|
|
|
|
Math.random(5);
|
2016-08-10 13:10:40 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
## See Also
|
|
|
|
|
2017-03-01 14:51:39 -08:00
|
|
|
[logic](/blocks/logic), [loops](/blocks/loops), [math](/blocks/math), [variables](/blocks/variables), [on-start](/blocks/on-start), [javascript blocks](/blocks/javascript-blocks)
|