Answer the question
In order to leave comments, you need to log in
What does nil mean in Swift?
Sorry for the possibly dumbest question, but I'm wondering what nil means by itself and in this context:
var SampleT = "123"
var Sample = SampleT.toInt()
if Sample != nil {
println("100 + 23 = \(Sample )")
}
var SampleText: String? = "Hello"
SampleText == nil
Answer the question
In order to leave comments, you need to log in
nil analogue of NULL
in this case, as an option, an empty or uninitialized string
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question