if hungry && !vegetarian { println("Let's eat steak!") } else if hungry && vegetarian { println("How about pumpkin curry?") } else { println("nevermind") }
var thereIsPie = true if hungry || thereIsPie { println("Let's eat!") } else { println("Let's wait.") }
Ternary conditional
if question { answer1 } else { answer2 } hugry ? println("Let's eat!") : println("Let's wait.") hugry || thereIsPie ? println("Let's eat!") : println("Let's wait.")