Syntax

EndImpressionRegion([closeAll])
0–1 arguments

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.

Example

Platform.Load("core", "1.1.5");
EndImpressionRegion(); // returns undefined (Platform.Function form returns null)

See Also