IsNull
→ booleanChecks whether a value is null. Returns true for null, false for any other value including empty string.
Available in:
Email
CloudPage
Automation
Triggered Send
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.