pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
27 lines (18 loc) • 475 B
Markdown
Determines whether a text string has any characters in it or not.
```sig
"".isEmpty()
```
* a [boolean](/types/boolean) value which is `true` if string has no characters in it or `false` if there is one or more characters.
Check if a string called `myString` is empty.
```blocks
let myString = ""
let emptyStatus = false
if (myString.isEmpty()) {
emptyStatus = true
}
```
[](/reference/text/includes)