EndImpressionRegion
→ undefinedBare-name Core form of Platform.Function.EndImpressionRegion — marks the end of an impression region. Bare alias returns undefined (Platform.Function form returns null).
Syntax
EndImpressionRegion([closeAll])
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
closeAll |
boolean | No | When true, closes every nested impression region still open. |
Description
EndImpressionRegion() is the bare-name Core-library form of Platform.Function.EndImpressionRegion(). It requires Platform.Load("core", "1.1.5") before use — the bare name is undefined until the load has run.
Once loaded, the bare name IS defined as a function and can be called without throwing. Because BeginImpressionRegion is unusable from SSJS, this method has no practical effect in SSJS either — impression regions are an AMPscript-only feature.
Return value
The bare alias returns undefined (typeof "undefined"). This differs from its Platform.Function.EndImpressionRegion counterpart, which returns a genuine null (typeof "object", === null). The official docs type the return as void.
The official docs type the return as void. The bare-name Core alias returns undefined (typeof “undefined”), whereas the Platform.Function form returns a genuine null (typeof “object”, === null).
Example
Platform.Load("core", "1.1.5");
EndImpressionRegion(); // returns undefined (Platform.Function form returns null)