DEV Community

rodman864
rodman864

Posted on

Swift

Conditions are important because they help you check a block of code to execute if that condition is true.

if temperature < 70 || isRaining { print ("Air conditioning off")} else { print("Air conditioning on")}

Top comments (0)