WMLScript isEmpty() Function

The isEmpty() function checks if the string is empty.

Syntax

n = String.isEmpty(string)
Component Description
n Boolean value returned by the function.
string A string.

Example

var a = String.isEmpty("");
var b = String.isEmpty("Hello world");
var c = String.isEmpty(23.4);

Result

a = true
b = false
c = false