IsNull - script and chart function
The IsNull function tests if the value of an expression is NULL and if so, returns -1 (True), otherwise 0 (False).
Syntax:
IsNull(expr )
Example: Data load script
In this example, an inline table with four rows is loaded, where the first three lines contain either nothing, - or 'NULL' in the Value column. We convert these values to true NULL value representations with the middle preceding LOAD using the Null function.
The first preceding LOAD adds a field checking if the value is NULL,using the IsNull function.
This is the resulting table. In the ValueNullConv column, the NULL values are represented by -.
ID | Value | ValueNullConv |
IsItNull |
---|---|---|---|
0 | - | T | |
1 | NULL | - | T |
2 | - | - | T |
3 | Value | Value | F |
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!