Conditions (if / else)
Decision making with if-else if-else; conditions without parentheses, blocks with curly braces.
Simple enough for a 5-year-old to understand
decision with if
Conditions in Swift do not require parentheses, but the { } block is mandatory.
let age = 20if age >= 18 { print("Adult")} else { print("Child")}