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β
| Type | Parameter | Description |
|---|---|---|
| Object | value | A 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})