Skip to main content
Microsoft Microsoft
MakeCode
About FAQ Projects GitHub
Reference
sprites controller game music scene info images
Blocks
On Start
Loops
repeat for while for of
Logic
if Boolean
Variables
assign change var var
Math JavaScript blocks Custom blocks
Python
Calling Sequencing Variables Operators Statements Functions Classes
JavaScript
Calling Sequencing Variables Operators Statements Functions Types Classes Interfaces Generics
Types
Number String Boolean Array Function Image Sprite
Blocks Gallery
Miscellaneous
About Support Translate Sharing projects Multiplayer Offline support Save Sign In Cloud Sync VS Code
Hardware
Errors Adding New Board Raspberry Pi Makey Makey Shoebox Controller Dev Debug connector
Developers
Command Line Interface Visual Studio Code support Blocks Embed Art, images, colors Sounds
Lessons
Cherry Pickr Barrel Dodger Dance Party BlockOut
Courses
CS Intro 1 CS Intro 2 CS Intro 3
DocsBlocks

Blocks language

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

Blocks

repeattimesdo
Loops
Loops and repetition.
ifthen
Logic
Logic operators and constants.
setitemto
Variables
Variables.

Built-in objects

010pick randomto
Math
More complex operations with numbers.
"this"" "compareto
text
Combine, split, and search text strings.
listadd valueto end
Arrays
Add, remove, and replace items in lists.

See Also

logic, loops, variables, math, text, arrays

on-start, javascript blocks, custom blocks

Edit this page on GitHub
Edit template of this page on GitHub
Edit template of this page on GitHub

Language Privacy & Cookies Terms Of Use Trademarks © 2022 Microsoft
Powered by Microsoft

Select Language

English
English
العربية
Arabic
Deutsch
German
Español (España)
Spanish (Spain)
Español (México)
Spanish (Mexico)
Français
French
Gaeilge
Irish
Italiano
Italian
日本語
Japanese
한국어
Korean
Русский
Russian
中文(简体)
Chinese (Simplified)
中文(繁體)
Chinese (Traditional)
Nederlands
Dutch
How do I add a new language? Translate this page