Skip to content

New Crowdin updates #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d7df388
New translations changing-operator.gif (French)
sashamishcheriakova Nov 8, 2023
0a11ae2
New translations changing-operator.gif (Dutch)
sashamishcheriakova Nov 8, 2023
cbe39e8
New translations changing-operator.gif (Welsh)
sashamishcheriakova Nov 8, 2023
f0c09f7
New translations comparison-blocks.png (French)
sashamishcheriakova Nov 8, 2023
5c6071e
New translations comparison-blocks.png (Dutch)
sashamishcheriakova Nov 8, 2023
418f734
New translations comparison-blocks.png (Welsh)
sashamishcheriakova Nov 8, 2023
3097091
New translations elseif-blocks.gif (French)
sashamishcheriakova Nov 8, 2023
e6e1149
New translations elseif-blocks.gif (Dutch)
sashamishcheriakova Nov 8, 2023
5b3a04b
New translations elseif-blocks.gif (Welsh)
sashamishcheriakova Nov 8, 2023
ad94984
New translations if-block-location.png (French)
sashamishcheriakova Nov 8, 2023
e9264d3
New translations if-block-location.png (Dutch)
sashamishcheriakova Nov 8, 2023
0cd53ba
New translations if-block-location.png (Welsh)
sashamishcheriakova Nov 8, 2023
ca44d78
New translations meta.yml (French)
sashamishcheriakova Nov 8, 2023
f5248af
New translations meta.yml (Dutch)
sashamishcheriakova Nov 8, 2023
3e5b6e3
New translations meta.yml (Welsh)
sashamishcheriakova Nov 8, 2023
0921dad
New translations step_1.md (French)
sashamishcheriakova Nov 8, 2023
1a41b4f
New translations step_1.md (Dutch)
sashamishcheriakova Nov 8, 2023
c9e461d
New translations step_1.md (Welsh)
sashamishcheriakova Nov 8, 2023
6c0a061
New translations changing-operator.gif (Dutch)
sashamishcheriakova Nov 24, 2023
6e4729c
New translations comparison-blocks.png (Dutch)
sashamishcheriakova Nov 24, 2023
e96f250
New translations if-block-location.png (Dutch)
sashamishcheriakova Nov 24, 2023
96a5027
New translations meta.yml (Dutch)
sashamishcheriakova Nov 24, 2023
c3f0e91
New translations step_1.md (Dutch)
sashamishcheriakova Nov 24, 2023
a7d27b8
New translations changing-operator.gif (Greek)
sashamishcheriakova Jun 16, 2025
6b9e962
New translations comparison-blocks.png (Greek)
sashamishcheriakova Jun 16, 2025
fe4f6b2
New translations elseif-blocks.gif (Greek)
sashamishcheriakova Jun 16, 2025
0859e37
New translations elseif-blocks.gif (Dutch)
sashamishcheriakova Jun 16, 2025
1e2e1a8
New translations if-block-location.png (Greek)
sashamishcheriakova Jun 16, 2025
88ac40a
New translations meta.yml (Greek)
sashamishcheriakova Jun 16, 2025
b6a619c
New translations step_1.md (French)
sashamishcheriakova Jun 16, 2025
a65683b
New translations step_1.md (Greek)
sashamishcheriakova Jun 16, 2025
b18bdd3
New translations step_1.md (Dutch)
sashamishcheriakova Jun 16, 2025
12aa371
New translations step_1.md (Welsh)
sashamishcheriakova Jun 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added cy-GB/images/changing-operator.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cy-GB/images/comparison-blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cy-GB/images/elseif-blocks.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cy-GB/images/if-block-location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions cy-GB/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Selection
hero_image: images/banner.png
description: How to use if blocks for selection on the micro:bit
version: 4
listed: false
copyedit: false
last_tested: "2022-05-19"
steps:
-
title: Using if blocks for selection on the micro:bit
77 changes: 77 additions & 0 deletions cy-GB/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
There might be times when you want a specific part of your program to run **only** when a certain condition is met. In programming, this is called **selection**.

In MakeCode, the most important block you will use for selection is the `if`{:class='microbitlogic'} block.

### Using an if block

You will find the `if`{:class='microbitlogic'} block in the `Logic`{:class='microbitlogic'} menu.

<img src="images/if-block-location.png" alt="The Logic menu with the `if` block highlighted." width="350"/>

You have to put `if`{:class='microbitlogic'} blocks inside other blocks, like `forever`{:class='microbitbasic'} loops or an `on button pressed`{:class='microbitinput'} block.

You can place other blocks **inside** an `if`{:class='microbitlogic'} block, and they will only run **if** the condition is `true`.

### The condition

An important part of the `if`{:class='microbitlogic'} block is the **condition**. The blocks inside an `if`{:class='microbitlogic'} will only run if a condition is `true`.

You can find the condition blocks in the `Logic`{:class='microbitlogic'} menu of the Toolbox.

<img src="images/comparison-blocks.png" alt="The Comparison section of the Logic menu, with three blocks showing: 0 = 0, 0 >

A condition has two parts:

1. Data
2. An operator

**Data**

There has to be data on either side of your condition. This can be a variable, a sensor reading, a `true/false`, or a number.

**Operator**

The operators is **how** you are comparing the two pieces of data.

You can think of the operator like a question you are asking about your two pieces of data.

The operators you can use are:

- `=` — are the two sides **equal**?
- `≠` — are the two sides **not equal**?
- `>` — is the first piece of data **greater than** the second?
- `<` — is the first piece of data **less than** the second?
- `≥` — is the first piece of data **greater than or equal to** the second?
- `≤` — is the first piece of data **less than or equal to** the second?

You can choose an operator by dragging a comparison block into your `if`{:class='microbitlogic'} block and clicking on the drop-down menu.

<img src="images/changing-operator.gif" alt="A demonstration of using the drop-down menu on a comparison block to change the operator." width="300"/>

#### else if and else

You can also add more possible outcomes to your `if`{:class='microbitlogic'} block with `else`{:class='microbitlogic'} and `else if`{:class='microbitlogic'} blocks.

**else**

Sometimes you might want some code to run if the condition in your `if`{:class='microbitlogic'} block is `false`. To do this, you can use an `else`{:class='microbitlogic'}.

The blocks inside the `else`{:class='microbitlogic'} part will run **only** when the condition is `false`.

To add an `else`{:class='microbitlogic'}, you need to click the `+` symbol at the bottom of your `if`{:class='microbitlogic'} block.

There is also an `if else`{:class='microbitlogic'} block that you can use if you know you will need to do one thing if a condition is true and another if a condition is false.

**else if**

An `else if`{:class='microbitlogic'} block allows you to add another condition to check.

**It will only check the second condition if the first condition is `false`. If you always want both conditions to be checked, you have to add a second `if`{:class='microbitlogic'} block.**

To add an `else if`{:class='microbitlogic'} block, you click the `+` symbol at the bottom of the `if`{:class='microbitlogic'} block.

<img src="images/elseif-blocks.gif" alt="An animation showing the + symbol being used to add three 'else if' sections. Finally, the 'else' is removed from the end by clicking the '-' symbol next to it." width="350"/>

If you just want an `else if`{:class='microbitlogic'}, you will have to click the `+` twice and then `-` the `else`{:class='microbitlogic'}.

You will then have to add another `condition`.
Binary file added el-GR/images/changing-operator.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/comparison-blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/elseif-blocks.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/if-block-location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions el-GR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Selection
hero_image: images/banner.png
description: How to use if blocks for selection on the micro:bit
version: 4
listed: false
copyedit: false
last_tested: "2022-05-19"
steps:
-
title: Using if blocks for selection on the micro:bit
77 changes: 77 additions & 0 deletions el-GR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
There might be times when you want a specific part of your program to run **only** when a certain condition is met. In programming, this is called **selection**.

In MakeCode, the most important block you will use for selection is the `if`{:class='microbitlogic'} block.

### Using an if block

You will find the `if`{:class='microbitlogic'} block in the `Logic`{:class='microbitlogic'} menu.

<img src="images/if-block-location.png" alt="The Logic menu with the `if` block highlighted." width="350"/>

You have to put `if`{:class='microbitlogic'} blocks inside other blocks, like `forever`{:class='microbitbasic'} loops or an `on button pressed`{:class='microbitinput'} block.

You can place other blocks **inside** an `if`{:class='microbitlogic'} block, and they will only run **if** the condition is `true`.

### The condition

An important part of the `if`{:class='microbitlogic'} block is the **condition**. The blocks inside an `if`{:class='microbitlogic'} will only run if a condition is `true`.

You can find the condition blocks in the `Logic`{:class='microbitlogic'} menu of the Toolbox.

<img src="images/comparison-blocks.png" alt="The Comparison section of the Logic menu, with three blocks showing: 0 = 0, 0 >

A condition has two parts:

1. Data
2. An operator

**Data**

There has to be data on either side of your condition. This can be a variable, a sensor reading, a `true/false`, or a number.

**Operator**

The operators is **how** you are comparing the two pieces of data.

You can think of the operator like a question you are asking about your two pieces of data.

The operators you can use are:

- `=` — are the two sides **equal**?
- `≠` — are the two sides **not equal**?
- `>` — is the first piece of data **greater than** the second?
- `<` — is the first piece of data **less than** the second?
- `≥` — is the first piece of data **greater than or equal to** the second?
- `≤` — is the first piece of data **less than or equal to** the second?

You can choose an operator by dragging a comparison block into your `if`{:class='microbitlogic'} block and clicking on the drop-down menu.

<img src="images/changing-operator.gif" alt="A demonstration of using the drop-down menu on a comparison block to change the operator." width="300"/>

#### else if and else

You can also add more possible outcomes to your `if`{:class='microbitlogic'} block with `else`{:class='microbitlogic'} and `else if`{:class='microbitlogic'} blocks.

**else**

Sometimes you might want some code to run if the condition in your `if`{:class='microbitlogic'} block is `false`. To do this, you can use an `else`{:class='microbitlogic'}.

The blocks inside the `else`{:class='microbitlogic'} part will run **only** when the condition is `false`.

To add an `else`{:class='microbitlogic'}, you need to click the `+` symbol at the bottom of your `if`{:class='microbitlogic'} block.

There is also an `if else`{:class='microbitlogic'} block that you can use if you know you will need to do one thing if a condition is true and another if a condition is false.

**else if**

An `else if`{:class='microbitlogic'} block allows you to add another condition to check.

**It will only check the second condition if the first condition is `false`. If you always want both conditions to be checked, you have to add a second `if`{:class='microbitlogic'} block.**

To add an `else if`{:class='microbitlogic'} block, you click the `+` symbol at the bottom of the `if`{:class='microbitlogic'} block.

<img src="images/elseif-blocks.gif" alt="An animation showing the + symbol being used to add three 'else if' sections. Finally, the 'else' is removed from the end by clicking the '-' symbol next to it." width="350"/>

If you just want an `else if`{:class='microbitlogic'}, you will have to click the `+` twice and then `-` the `else`{:class='microbitlogic'}.

You will then have to add another `condition`.
Binary file added fr-FR/images/changing-operator.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fr-FR/images/comparison-blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fr-FR/images/elseif-blocks.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fr-FR/images/if-block-location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions fr-FR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Selection
hero_image: images/banner.png
description: How to use if blocks for selection on the micro:bit
version: 4
listed: false
copyedit: false
last_tested: "2022-05-19"
steps:
-
title: Using if blocks for selection on the micro:bit
77 changes: 77 additions & 0 deletions fr-FR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
There might be times when you want a specific part of your program to run **only** when a certain condition is met. In programming, this is called **selection**.

In MakeCode, the most important block you will use for selection is the `if`{:class='microbitlogic'} block.

### Using an if block

You will find the `if`{:class='microbitlogic'} block in the `Logic`{:class='microbitlogic'} menu.

<img src="images/if-block-location.png" alt="The Logic menu with the `if` block highlighted." width="350"/>

You have to put `if`{:class='microbitlogic'} blocks inside other blocks, like `forever`{:class='microbitbasic'} loops or an `on button pressed`{:class='microbitinput'} block.

You can place other blocks **inside** an `if`{:class='microbitlogic'} block, and they will only run **if** the condition is `true`.

### The condition

An important part of the `if`{:class='microbitlogic'} block is the **condition**. The blocks inside an `if`{:class='microbitlogic'} will only run if a condition is `true`.

You can find the condition blocks in the `Logic`{:class='microbitlogic'} menu of the Toolbox.

<img src="images/comparison-blocks.png" alt="The Comparison section of the Logic menu, with three blocks showing: 0 = 0, 0 >

A condition has two parts:

1. Data
2. An operator

**Data**

There has to be data on either side of your condition. This can be a variable, a sensor reading, a `true/false`, or a number.

**Operator**

The operators is **how** you are comparing the two pieces of data.

You can think of the operator like a question you are asking about your two pieces of data.

The operators you can use are:

- `=` — are the two sides **equal**?
- `≠` — are the two sides **not equal**?
- `>` — is the first piece of data **greater than** the second?
- `<` — is the first piece of data **less than** the second?
- `≥` — is the first piece of data **greater than or equal to** the second?
- `≤` — is the first piece of data **less than or equal to** the second?

You can choose an operator by dragging a comparison block into your `if`{:class='microbitlogic'} block and clicking on the drop-down menu.

<img src="images/changing-operator.gif" alt="A demonstration of using the drop-down menu on a comparison block to change the operator." width="300"/>

#### else if and else

You can also add more possible outcomes to your `if`{:class='microbitlogic'} block with `else`{:class='microbitlogic'} and `else if`{:class='microbitlogic'} blocks.

**else**

Sometimes you might want some code to run if the condition in your `if`{:class='microbitlogic'} block is `false`. To do this, you can use an `else`{:class='microbitlogic'}.

The blocks inside the `else`{:class='microbitlogic'} part will run **only** when the condition is `false`.

To add an `else`{:class='microbitlogic'}, you need to click the `+` symbol at the bottom of your `if`{:class='microbitlogic'} block.

There is also an `if else`{:class='microbitlogic'} block that you can use if you know you will need to do one thing if a condition is true and another if a condition is false.

**else if**

An `else if`{:class='microbitlogic'} block allows you to add another condition to check.

**It will only check the second condition if the first condition is `false`. If you always want both conditions to be checked, you have to add a second `if`{:class='microbitlogic'} block.**

To add an `else if`{:class='microbitlogic'} block, you click the `+` symbol at the bottom of the `if`{:class='microbitlogic'} block.

<img src="images/elseif-blocks.gif" alt="An animation showing the + symbol being used to add three 'else if' sections. Finally, the 'else' is removed from the end by clicking the '-' symbol next to it." width="350"/>

If you just want an `else if`{:class='microbitlogic'}, you will have to click the `+` twice and then `-` the `else`{:class='microbitlogic'}.

You will then have to add another `condition`.
Binary file added nl-NL/images/changing-operator.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nl-NL/images/comparison-blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nl-NL/images/elseif-blocks.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nl-NL/images/if-block-location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions nl-NL/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Selectie
hero_image: images/banner.png
description: Hoe gebruik je als blokken voor selectie op de micro:bit
version: 4
listed: false
copyedit: false
last_tested: "2022-05-19"
steps:
-
title: Als blokken gebruiken voor selectie op de micro:bit
77 changes: 77 additions & 0 deletions nl-NL/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
Het kan voorkomen dat je wilt dat een specifiek onderdeel van jouw programma **alleen** wordt uitgevoerd als aan een bepaalde voorwaarde is voldaan. In programmeren heet dit **selectie**.

In MakeCode is het belangrijkste blok dat je voor selectie gebruikt het `als`{:class='microbitlogic'} blok.

### Een als blok gebruiken

Je vindt het blok `als`{:class='microbitlogic'} in het menu `Logisch`{:class='microbitlogic'}.

<img src="images/if-block-location.png" alt="The Logic menu with the `if` block highlighted." width="350"/>

Je moet `als`{:class='microbitlogic'} blokken in andere blokken zetten, zoals `de hele tijd`{:class='microbitbasic'} lussen of een `wanneer knop wordt ingedrukt`{:class='microbitinput'} blok.

Je kunt andere blokken **binnen** een `als`{:class='microbitlogic'} blok plaatsen en ze zullen alleen werken **als** de voorwaarde `waar` is.

### De voorwaarde

Een belangrijk deel van het `als`{:class='microbitlogic'} blok is de **voorwaarde**. De blokken in een `als`{:class='microbitlogic'} blok worden alleen uitgevoerd als een voorwaarde `waar` is.

Je kunt de voorwaarden blokken vinden in het menu `Logisch`{:class='microbitlogic'} van de Toolbox.

<img src="images/comparison-blocks.png" alt="The Comparison section of the Logic menu, with three blocks showing: 0 = 0, 0 >

Een voorwaarde bestaat uit twee delen:

1. Gegevens
2. Een operator

**Gegevens**

Er moeten gegevens aan beide kanten van je voorwaarde staan. Dit kan een variabele, een uitlezing van een sensor zijn, een `waar/onwaar`, of een getal.

**Operator**

De operators bepalen **hoe** je de twee stukken gegevens met elkaar vergelijkt.

Je kunt de operator beschouwen als een vraag die je stelt over je twee gegevens.

De operators die je kan gebruiken zijn:

- `=` - zijn de twee zijden **gelijk**?
- `≠` — zijn de twee zijden **niet gelijk**?
- `>` — is het eerste stukje gegevens **groter dan** het tweede?
- `<` — is het eerste stukje gegevens **kleiner dan** het tweede?
- `≥` — is het eerste stukje gegevens **groter dan of gelijk aan** het tweede?
- `≤` — is het eerste stukje gegevens **kleiner dan of gelijk aan** het tweede?

Je kunt een operator kiezen door een vergelijkingsblok in je `als`{:class='microbitlogic'} blok te slepen en op het vervolgkeuzemenu te klikken.

<img src="images/changing-operator.gif" alt="A demonstration of using the drop-down menu on a comparison block to change the operator." width="300"/>

#### anders als en anders

Je kunt nog meer mogelijke resultaten toevoegen aan je `als`{:class='microbitlogic'} blok met `anders`{:class='microbitlogic'} en `anders als`{:class='microbitlogic'} blokken.

**anders**

Soms wil je dat wat code wordt uitgevoerd als de voorwaarde in je `als`{:class='microbitlogic'} blok `onwaar` is. Om dit te doen, kun je een `anders`{:class='microbitlogic'} blok gebruiken.

De blokken in een `anders`{:class='microbitlogic'} blok worden alleen uitgevoerd als een voorwaarde `onwaar` is.

Om een `anders`{:class='microbitlogic'} toe te voegen, moet je op het `+` symbool onder in je `als`{:class='microbitlogic'} blok klikken.

Er is ook een `als anders`{:class='microbitlogic'} blok dat je kunt gebruiken als je weet dat je één ding moet doen als een voorwaarde waar is en een ander als een voorwaarde niet waar is.

**anders als**

Een `anders als`{:class='microbitlogic'} blok stelt je in staat een andere voorwaarde toe te voegen om te controleren.

**Het zal alleen de tweede voorwaarde controleren als de eerste voorwaarde `onwaar` is. Als je altijd wilt dat beide voorwaarden worden gecontroleerd, moet je een tweede `als`{:class='microbitlogic'} blok toevoegen.**

Om een `anders als`{:class='microbitlogic'} blok toe te voegen, klik je op het `+` symbool onderaan het `als`{:class='microbitlogic'} blok.

<img src="images/elseif-blocks.gif" alt="An animation showing the + symbol being used to add three 'else if' sections. Finally, the 'else' is removed from the end by clicking the '-' symbol next to it." width="350"/>

Als je alleen een `anders als`{:class='microbitlogic'} wilt, zul je twee keer op de `+` moeten klikken en vervolgens op de `-` van de `anders`{:class='microbitlogic'}.

Je moet dan nog een `voorwaarde` toevoegen.