# NULL 函数

本节介绍用于返回或检测 NULL 值的函数。

所有函数均可用于数据加载脚本和图表表达式。

使用每个函数的下拉列表可查看每个函数的简短描述和语法。单击语法描述中的函数名称可了解更多信息。

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

#### EmptyIsNull

EmptyIsNull 函数将空字符串转换成 NULL。因此，如果参数是空字符串，则返回 NULL，否则返回参数。

[**EmptyIsNull**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/EmptyIsNull.htm)(expr )

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

#### IsNull

IsNull 函数用于检验表达式的值是否为 NULL，如果是，则返回 -1 (True)，否则返回 0 (False)。

[**IsNull**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/IsNull.htm)(expr )

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

#### Null

Null 函数返回 null 值。

[**Null**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/NULLFunctions/Null.htm)( )