Description

Use this function to check if a value is null or undefined.

Syntax

isNil(value)

Returns

Return ValueDescription
True/FalseReturns true if the given value is null or undefined, and false otherwise.

Sample

ExampleResultDescription
isNil(null)trueReturns true if the given value is null.
isNil(undefined)trueReturns true if the given value is undefined.
isNil(5)falseReturns false if the given value, 5, is not null or undefined.

To view all the Language functions, click here.