Source string

.level_help_tab_if_statement_3
282/2820
Context English State
.level_help_tab_general_objectives_star3_advice
To achieve this objective, your program should be as few lines as possible (line numbers are displayed to the left of the heroes' instructions).
.level_help_tab_statement_code_example
code example:
.level_help_tab_statement_graph_code_example
example:
.level_help_tab_if_statement_1
%%statement branching-statement$if%% allows to run instructions only if a given condition is true.
.level_help_tab_if_statement_2
You could read the above example as "If the square to the right of me is a wall, then go to the left. Otherwise go to the right".
.level_help_tab_if_statement_3
%%statement branching-statement$if%% checks if the condition is true in which case it will run the instructions inside it (instructions to the right of the vertical gray line). Otherwise it will run the instructions inside the %%statement branching-statement$else%% if there is one.
.level_help_tab_if_statement_4
%%statement branching-statement$else%% is not initially part of the %%statement branching-statement$if%%. To make it appear, drag any instruction over the %%statement branching-statement$if%%.
If you remove all the instructions inside %%statement branching-statement$else%%, it will disappear.
.level_help_tab_if_statement_6
Click on the plus sign to add other conditions.
.level_help_tab_if_statement_7
You could read the above example as "If the square to the right of me is a wall or if the square to the right of me is a hole, then go to the left".
.level_help_tab_jump_statement_1
%%statement branching-statement$jump%% allows to jump backward or forward in the program.
.level_help_tab_jump_statement_2
You could read the above example as "Step to the right infinitely many times".
Context English State
.level_help_tab_general_objectives_star3_advice
To achieve this objective, your program should be as few lines as possible (line numbers are displayed to the left of the heroes' instructions).
.level_help_tab_general_objectives_star3_objective
code length secondary objective
.level_help_tab_general_objectives_stars
There are 3 stars to win per level:
.level_help_tab_if_statement_1
%%statement branching-statement$if%% allows to run instructions only if a given condition is true.
.level_help_tab_if_statement_2
You could read the above example as "If the square to the right of me is a wall, then go to the left. Otherwise go to the right".
.level_help_tab_if_statement_3
%%statement branching-statement$if%% checks if the condition is true in which case it will run the instructions inside it (instructions to the right of the vertical gray line). Otherwise it will run the instructions inside the %%statement branching-statement$else%% if there is one.
.level_help_tab_if_statement_4
%%statement branching-statement$else%% is not initially part of the %%statement branching-statement$if%%. To make it appear, drag any instruction over the %%statement branching-statement$if%%.
If you remove all the instructions inside %%statement branching-statement$else%%, it will disappear.
.level_help_tab_if_statement_6
Click on the plus sign to add other conditions.
.level_help_tab_if_statement_7
You could read the above example as "If the square to the right of me is a wall or if the square to the right of me is a hole, then go to the left".
.level_help_tab_jump_statement_1
%%statement branching-statement$jump%% allows to jump backward or forward in the program.

Loading…

Loading…

Things to check

Multiple failing checks

The translations in several languages have failing checks

Reset

Glossary

English English
No related strings found in the glossary.

Source information

Context
.level_help_tab_if_statement_3
Labels
No labels currently set!
Source string age
6 years ago
Translation file
src/locale/messages-en.json, string 107