Question:

How to check an empty string in an if-else statement?

Answer:

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

Your code will run only if strValue has value.

Reference


This is the end of post