isNotNull(value) Last updated: 04. Mar 2025
Checks if specified value is not null.
Parameters
| Name | Type | Description | 
|---|---|---|
| value | any | The value to check. | 
Returns
True of value is not null, otherwise false.
Example
Data
{
    "value1" : "asdf",
    "value2" : null
}Code example (#JS)
#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.<p>
    Is value1 not null?
    #docly.isNotNull(value1) ? "Yes" : "No"#
</p>
<p>
    Is value2 not null?
    #docly.isNotNull(value2) ? "Yes" : "No"#
</p>Output
The #JS code above produces the output shown below:<p>
    Is value1 not null?
    Yes
</p>
<p>
    Is value2 not null?
    No
</p>