isNil
Modified on Mon, 21 Aug 2023
Description
Use this function to check if a value is null or undefined.
Syntax
isNil(value)
Returns
Return Value | Description |
---|---|
True/False | Returns true if the given value is null or undefined, and false otherwise. |
Sample
Example | Result | Description |
---|---|---|
isNil(null) | true | Returns true if the given value is null. |
isNil(undefined) | true | Returns true if the given value is undefined. |
isNil(5) | false | Returns false if the given value, 5, is not null or undefined. |
To view all the Language functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article