Checks whether a savebuffer exists.

Syntax

Smartsite SXML CopyCode image Copy Code
boolean buffer.exists(string name)
boolean buffer.exists(string name, enum scope)

Parameters

Name Data Type Description
name String The name of the buffer.
scope Enum The scope.
Enum values:
  • Auto
    Field scope by default; Region scope when enclosed by a region tag.
  • Field
    Field scope.
  • Page
    Page scope.
  • Region
    Region scope.

Return Value

Data Type Description
Boolean Boolean indicating if specified buffer exists.

Expand image Example

SXML