| Click ON to: ... | StepA | StepB | StepC | StepAll |
Suggerimenti: i posti da modificare nello script sono 4: one_step(cs), rectangle_del(cs), one_step_all(), init().
Istruzione switch() { } |
|
| Forma | Significato (meaning) |
switch (cs) {
case 1: instruction;
instruction;
break;
case 2: instruction;
instruction;
break;
case 3: instruction;
instruction;
break;
}
|
A seconda del valore della
variabile cs, viene deviato
il flusso esecutivo
case 1 executed
if cs==1
case 2 executed
if cs==2
case 3 executed
if cs==3
break esce dal blocco
|