What does this program print?

from Optionals
Swift 6.3.3 beginner 2 min

What does this program print?

swift
let raw: String? = "12"

if let raw, let value = Int(raw) {
    print(value * 2)
} else {
    print("invalid")
}
Open in playground
Report an error