Question

How to check if a string is empty?

Answer

By using if statement to check.

1
2
3
if (strValue) {
//do something
}

it will only run if strValue is not empty.

Reference


This is the end of post