Conditional Statements

Conditional statements allow programs to make decisions.

If Statement

Example:

let x = 10

if (x > 5) {
    print("x is greater than 5")
}

Example:

let age = 18

if (age >= 18) {
    print("Adult")
}