Use condition ? whenTrue : whenFalse as a concise conditional expression.
condition ? whenTrue : whenFalse
let isAdmin = true let greeting = isAdmin ? "Welcome, admin" : "Welcome, user"
If-Else & Ternary