Switch case

From Digipool-Wiki
Revision as of 20:39, 20 June 2020 by WikiSysop (Talk | contribs) (Created page with " Switch-Case Beispiel <pre> switch (page) { case 1: playIntro(); break; case 2: playGame(); break;...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Switch-Case Beispiel

    

switch (page) {
        case 1:
            playIntro();
            break;
        case 2:
            playGame();
            break;
        case 3:
            gameEnd();
            break;
        case 4:
            showScore();
            break;
}