# NULL 函數

本節描述用來傳回或偵測 NULL 值的函數。

所有函數皆可用於資料載入指令碼和圖表運算式。

使用每個函數中的下拉式功能表，以查看每個函數的簡要描述及語法。按一下語法描述中的函數名稱，以取得進一步詳細資料。

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/null-functions.htm)

#### EmptyIsNull

EmptyIsNull 函數將空的字串轉換為 NULL。因此，若參數是空的字串，這會傳回 NULL，否則會傳回參數。

[**EmptyIsNull**](https://help.qlik.com/zh-TW/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/EmptyIsNull.htm)(expr )

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/null-functions.htm)

#### IsNull

IsNull 函數會檢測運算式的值是否為 NULL，如果是的話，會傳回 -1 (True)，否則會傳回 0 (False)。

[**IsNull**](https://help.qlik.com/zh-TW/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/IsNull.htm)(expr )

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/null-functions.htm)

#### Null

Null 函數會傳回 null 值。

[**Null**](https://help.qlik.com/zh-TW/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/Null.htm)( )