Fonction IsEmpty VBScript
Définition et utilisation
La fonction IsEmpty peut retourner une valeur booléenne indiquant si la variable spécifiée a été initialisée ou non. Si elle n'a pas été initialisée, elle retourne true, sinon elle retourne False.
Syntaxe
IsEmpty(expression)
Paramètres | Description |
---|---|
expression | Obligatoire. Expression (généralement un nom de variable). |
Exemple
dim x document.write(IsEmpty(x)) x=10 document.write(IsEmpty(x)) x=Empty document.write(IsEmpty(x)) x=Null document.write(IsEmpty(x))
Sortie respective :
True False True False