Conditionals
Overview
if
let a = true
let b = true
if a && b {
print("Hello, Swift!")
}
// compile: true
// Both a and b are trueGuard
Sources
if vs Guard
Do-catch, Do-try
Sources
Switch
the difference between if-else
default:
fallthrough
Ternary Conditional Operator
Sources
Videos
Articles / Documents
Last updated