Skip to content

T1000-Swift-Hail/week-01_LAB_SWITCH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

week-01_LAB_SWITCH

Create a new playground in your Xcode IDE, name it : conditionals_lab_switch

- Change the following code to use the Swich conditional instead of If-Else

let colorBlue = "Blue"
let colorRed = "Red"
let colorPicked = "Red"

if colorPicked == colorRed {
print("Yes! this is the picked color")
} else if colorPicked == colorBlue {
print ("Not the picked color!")
} else {
print("color picked is not known")
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published