Docly Developers
Function Updated 17 Oct 2026

isNull(value)

Checks if specified value is null. Useful for null-checks in form validation or before-write checks.

Parameters

valueanyrequired

The value to check.

Returns

true if the value is null or undefined, otherwise false. An empty string and 0 give false.

Example

Mixed HTML (or any text file) with inline JavaScript between hash signs.
<p>
    Is value1 null?
    #docly.isNull(value1) ? "Yes" : "No"#
</p>
<p>
    Is value2 null?
    #docly.isNull(value2) ? "Yes" : "No"#
</p>