I am trying to make my code print "Hello World" in Swift 4 by selecting just one of the three numbers in the array and I get the error listed in the title.
func newFunc() {
let employees = [1, 2, 3]?
if employees == [1] {
let printthis = "Hello World!"
print(printthis)
} else {
print("Nothing here")
}
}
newFunc()