Skip to main content
Version: 8.1

isNull

This function is used by Ignition's Expression language.

Description​

Tests to see whether the argument value is null or not. You can also check for null by simply comparing the value to the null keyword, where isNull(x) is the same as x = null.

Syntax​

isNull(value)

Parameters​

TypeParameterDescription
ObjectvalueA value to check if it is null.

Returns​

Boolean - Returns true if the value is null, or false if it is not.

Examples​

Code Snippet
//Returns "Value is Null" if the property is null, and the value otherwise.
if(isNull({Root Container.MyProperty}), "Value is Null", {Root Container.MyProperty})