Two issues:
\n
. name
, and when I call the variable in the middle of the text it does not seem to be declared. Xcode Version 7.3.1 (7D1014)
Code:
import UIKit
var age = 19
if age >= 18 {
print("You can play")
} else {
print("sorry are young")
}
var name = "Lucas"
if name == "Lucas" {
print("Hi, + name + welcome")
}
Print screen: