is Empty
Determines whether a text string has any characters in it or not.
"".isEmpty()
Returns
- a boolean value which is
trueif string has no characters in it orfalseif there is one or more characters.
Example
Check if a string called myString is empty.
let myString = ""
let emptyStatus = false
if (myString.isEmpty()) {
emptyStatus = true
}