IsNotNull(value) Last updated: 03. Jan 2023

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?
    #IsNotNull(value1) ? "Yes" : "No"#
</p>

<p>
    Is value2 not null?
    #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>