FratmScript 🤌🏻

Lesson 12 / 14

vedimm

vedimm (value) { caso …: … } picks one of many cases (switch). rompe leaves it (break), and predefinit is the case for everything else (default).

Exercise

Add a caso "dummeneca" that prints "Ragù!" and set giorno to "dummeneca".

chist è giorno = "sabato"

vedimm (giorno) {
    caso "sabato":
        stamm a dì("Pizza cu l'amici!")
        rompe
    predefinit:
        stamm a dì("Se fatica...")
}

When you are done, the program prints

Ragù!

Do this lesson in the playground