VBScript IsNull 関数

定義と使用法

IsNull 関数は、指定された表达式が無効なデータであるかどうかを示すブール値を返します。表达式が Null であれば True、そうでない場合は False を返します。

構文

IsNull(expression)
パラメータ 説明
expression 必要な。表达式。

dim x
document.write(IsNull(x))
x=10
document.write(IsNull(x))
x=Empty
document.write(IsNull(x))
x=Null
document.write(IsNull(x))

それぞれ出力される:

False
False
False
True