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