Syntax

Platform.Function.IsNull(value)
1 argument

Parameters

Name Type Required Description
value any Yes Value to check

Examples

Platform.Function.IsNull(null);      // true
Platform.Function.IsNull("");        // false
Platform.Function.IsNull(undefined); // true
Platform.Function.IsNull(0);         // false
Platform.Function.IsNull("hello");   // false

Notes

For most SSJS use cases, a simple !value or value === null check is more idiomatic. Platform.Function.IsNull is an AMPscript-compatibility function.

Use Platform.Function.Empty() to also check for empty strings and whitespace.

See Also

See Also