Fonction isEmpty() de WMLScript

La fonction isEmpty() vérifie si une chaîne est vide.

Syntaxe

n = String.isEmpty(string)
Composant Description
n Valeur booléenne renvoyée par la fonction.
string Une chaîne de caractères.

Exemple

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

Résultat

a = true
b = false
c = false