Translation

.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.
255/2820
Context English Swedish 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).
För att nå detta målet ska ditt program bestå av så få rader som möjligt (radnummer visas till vänster om instruktionerna till hjältarna).
.level_help_tab_statement_code_example
code example:
kodexempel:
.level_help_tab_statement_graph_code_example
example:
exempel:
.level_help_tab_if_statement_1
%%statement branching-statement$if%% allows to run instructions only if a given condition is true.
%%statement branching-statement$om%% tillåter endast att instruktioner körs om angivet villkor är sant.
.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".
Du kan läsa exemplet ovan som "Om rutan till höger om mig är en vägg, i så fall gå till vänster. Annars gå till höger".
.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.
%%statement branching-statement$om%% kontrollerar om villkoret är sant och kör i så fall instruktionerna inuti (instruktioner till höger om den grå vertikala linjen). Annars körs instruktionerna inuti %%statement branching-statement$annars%% om det finns.
.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.
%%statement branching-statement$annars%% är från början inte en del av %%statement branching-statement$om%%. För att få fram den, släpa in någon annan instruktion över %%statement branching-statement$om%%.
Om du tar bort alla instruktioner inuti %%statement branching-statement$annars%%, kommer den försvinna.
.level_help_tab_if_statement_6
Click on the plus sign to add other conditions.
Klicka på plustecknet för att lägga till fler villkor.
.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".
Du kan läsa exemplet ovan som "Om rutan till höger om mig är en vägg eller om rutan till höger om mig är ett hål, i så fall gå till vänster".
.level_help_tab_jump_statement_1
%%statement branching-statement$jump%% allows to jump backward or forward in the program.
%%statement branching-statement$hoppa%% kan hoppa bakåt eller framåt i programmet.
.level_help_tab_jump_statement_2
You could read the above example as "Step to the right infinitely many times".
Du kan läsa exemplet ovan som "Gå till höger oändligt antal gånger".
Context English Swedish 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).
För att nå detta målet ska ditt program bestå av så få rader som möjligt (radnummer visas till vänster om instruktionerna till hjältarna).
.level_help_tab_general_objectives_star3_objective
code length secondary objective
kodlängd är sekundärt mål
.level_help_tab_general_objectives_stars
There are 3 stars to win per level:
Det finns 3 stjärnor man kan få på varje nivå:
.level_help_tab_if_statement_1
%%statement branching-statement$if%% allows to run instructions only if a given condition is true.
%%statement branching-statement$om%% tillåter endast att instruktioner körs om angivet villkor är sant.
.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".
Du kan läsa exemplet ovan som "Om rutan till höger om mig är en vägg, i så fall gå till vänster. Annars gå till höger".
.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.
%%statement branching-statement$om%% kontrollerar om villkoret är sant och kör i så fall instruktionerna inuti (instruktioner till höger om den grå vertikala linjen). Annars körs instruktionerna inuti %%statement branching-statement$annars%% om det finns.
.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.
%%statement branching-statement$annars%% är från början inte en del av %%statement branching-statement$om%%. För att få fram den, släpa in någon annan instruktion över %%statement branching-statement$om%%.
Om du tar bort alla instruktioner inuti %%statement branching-statement$annars%%, kommer den försvinna.
.level_help_tab_if_statement_6
Click on the plus sign to add other conditions.
Klicka på plustecknet för att lägga till fler villkor.
.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".
Du kan läsa exemplet ovan som "Om rutan till höger om mig är en vägg eller om rutan till höger om mig är ett hål, i så fall gå till vänster".
.level_help_tab_jump_statement_1
%%statement branching-statement$jump%% allows to jump backward or forward in the program.
%%statement branching-statement$hoppa%% kan hoppa bakåt eller framåt i programmet.

Loading…

Loading…

Glossary

English Swedish
No related strings found in the glossary.

Source information

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