FratmScript 🤌🏻

Lesson 3 / 14

si and sinnò

si (condition) { … } runs the block only if the condition is true (if).

sinnò { … } is what happens when it is not (else). For more cases: sinnò si (…) { … }.

To compare: <, >, <=, >=, ==, !=. To combine: e, o, no.

Exercise

Add a sinnò that prints "Bonasera!" and set ora to 20.

tien ora = 9

si (ora < 12) {
    stamm a dì("Bongiorno!")
}

When you are done, the program prints

Bonasera!

Do this lesson in the playground