6. Choosing

With 'if', a program can choose.

With 'if', a program can choose. When the part inside ( ) is true it runs the first block; otherwise the 'else' block. Try answering with different numbers!

Code

age = ask("How old are you?")
if (age >= 10) {
    print("Wow, you are big!")
} else {
    print("You are small, but mighty!")
}

Copy this code into the Aksa editor, run it, then change something and run it again!