the best way to take care of the optionals mark variable in the swift 3

1
2
3
4
5
var lotSelected: Int?
if let lot = lotSelected {
print(lot)
}

好習慣可以改變一生! 哈哈哈

always use if let sentence to check then use the new constant.