Skip to main content
Version: 8.1

isNull

This function is used by Ignition's Expression language.

Description

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

Syntax

isNull(value)

  • Parameters

    • Object value - A value to check if it is null.
  • Results

    • Boolean - True if the value is null, 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})