|
Summary
Determines if a specified JS value is null.
|
Syntax
JSVAL_IS_NULL(v)
|
Description
Use JSVAL_IS_NULL to determine if a given JS value, v , contains a null value. If v is JSVAL_NULL , JSVAL_IS_NULL evaluates to true . Otherwise, it evaluates to false . These return types are C values, not JS Boolean values.
|
Example
The following code snippet illustrates how a JavaScript variable, MyItem, is conditionally tested in an if statement to see if it contains a null value.
if (JSVAL_IS_NULL(MyItem)) {
. . .
}
|
Notes
Even though v may contain a null value, its type tag is always JSVAL_OBJECT .
|
See Also
|